MySQL8.0 中文参考手册  / 第5章 MySQL 服务器管理  / 5.1 MySQL 服务器  /  5.1.5 服务器系统变量参考

5.1.5 服务器系统变量参考

下表列出了适用于 mysqld.

该表在一个统一列表中列出命令行选项 (Cmd-line)、配置文件中有效的选项 (Option file)、服务器系统变量 (System Var) 和状态变量 (Status var),并指示每个选项的位置或变量有效。如果在命令行或选项文件中设置的服务器选项与相应系统变量的名称不同,则会在相应选项的正下方注明变量名称。变量的范围 (Var Scope) 是 Global、Session 或两者兼而有之。设置和使用变量的详细信息请参见相应的项目说明。在适当的情况下,提供了指向有关这些项目的更多信息的直接链接。

表 5.2 系统变量汇总

姓名 命令行 配置文件 系统变量 作用范围 动态的
activate_all_roles_on_login 全局
admin_address 全局
admin_port 全局
admin_ssl_ca 全局
admin_ssl_capath 全局
admin_ssl_cert 全局
admin_ssl_cipher 全局
admin_ssl_crl 全局
admin_ssl_crlpath 全局
admin_ssl_key 全局
admin_tls_ciphersuites 全局
admin_tls_version 全局
audit_log_buffer_size 全局
audit_log_compression 全局
audit_log_connection_policy 全局
audit_log_current_session 两个都
audit_log_disable 全局
audit_log_encryption 全局
audit_log_exclude_accounts 全局
audit_log_file 全局
audit_log_filter_id 两个都
audit_log_flush 全局
audit_log_format 全局
audit_log_format_unix_timestamp 全局
audit_log_include_accounts 全局
audit_log_max_size 全局
audit_log_password_history_keep_days 全局
audit_log_policy 全局
audit_log_prune_seconds 全局
audit_log_read_buffer_size 都有
audit_log_rotate_on_size 全局
audit_log_statement_policy 全局
audit_log_strategy 全局
authentication_fido_rp_id 全局
authentication_kerberos_service_key_tab 全局
authentication_kerberos_service_principal 全局
authentication_ldap_sasl_auth_method_name 全局
authentication_ldap_sasl_bind_base_dn 全局
authentication_ldap_sasl_bind_root_dn 全局
authentication_ldap_sasl_bind_root_pwd 全局
authentication_ldap_sasl_ca_path 全局
authentication_ldap_sasl_group_search_attr 全局
authentication_ldap_sasl_group_search_filter 全局
authentication_ldap_sasl_init_pool_size 全局
authentication_ldap_sasl_log_status 全局
authentication_ldap_sasl_max_pool_size 全局
authentication_ldap_sasl_referral 全局
authentication_ldap_sasl_server_host 全局
authentication_ldap_sasl_server_port 全局
authentication_ldap_sasl_tls 全局
authentication_ldap_sasl_user_search_attr 全局
authentication_ldap_simple_auth_method_name 全局
authentication_ldap_simple_bind_base_dn 全局
authentication_ldap_simple_bind_root_dn 全局
authentication_ldap_simple_bind_root_pwd 全局
authentication_ldap_simple_ca_path 全局
authentication_ldap_simple_group_search_attr 全局
authentication_ldap_simple_group_search_filter 全局
authentication_ldap_simple_init_pool_size 全局
authentication_ldap_simple_log_status 全局
authentication_ldap_simple_max_pool_size 全局
authentication_ldap_simple_referral 全局
authentication_ldap_simple_server_host 全局
authentication_ldap_simple_server_port 全局
authentication_ldap_simple_tls 全局
authentication_ldap_simple_user_search_attr 全局
authentication_policy 全局
authentication_windows_log_level 全局
authentication_windows_use_principal_name 全局
auto_generate_certs 全局
auto_increment_increment 都有
auto_increment_offset 都有
autocommit 都有
automatic_sp_privileges 全局
avoid_temporal_upgrade 全局
back_log 全局
basedir 全局
big_tables 都有
bind_address 全局
binlog_cache_size 全局
binlog_checksum 全局
binlog_direct_non_transactional_updates 都有
binlog_encryption 全局
binlog_error_action 全局
binlog_expire_logs_auto_purge 全局
binlog_expire_logs_seconds 全局
binlog_format 都有
binlog_group_commit_sync_delay 全局
binlog_group_commit_sync_no_delay_count 全局
binlog_gtid_simple_recovery 全局
binlog_max_flush_queue_time 全局
binlog_order_commits 全局
binlog_rotate_encryption_master_key_at_startup 全局
binlog_row_event_max_size 全局
binlog_row_image 都有
binlog_row_metadata 全局
binlog_row_value_options 都有
binlog_rows_query_log_events 都有
binlog_stmt_cache_size 全局
binlog_transaction_compression 都有
binlog_transaction_compression_level_zstd 都有
binlog_transaction_dependency_history_size 全局
binlog_transaction_dependency_tracking 全局
block_encryption_mode 都有
build_id 全局
bulk_insert_buffer_size 都有
caching_sha2_password_auto_generate_rsa_keys 全局
caching_sha2_password_digest_rounds 全局
caching_sha2_password_private_key_path 全局
caching_sha2_password_public_key_path 全局
character_set_client 都有
character_set_connection 都有
character_set_database (note 1)) 都有
character_set_filesystem 都有
character_set_results 都有
character_set_server 都有
character_set_system 全局
character_sets_dir 全局
check_proxy_users 全局
clone_autotune_concurrency 全局
clone_block_ddl 全局
clone_buffer_size 全局
clone_ddl_timeout 全局
clone_delay_after_data_drop 全局
clone_donor_timeout_after_network_failure 全局
clone_enable_compression 全局
clone_max_concurrency 全局
clone_max_data_bandwidth 全局
clone_max_network_bandwidth 全局
clone_ssl_ca 全局
clone_ssl_cert 全局
clone_ssl_key 全局
clone_valid_donor_list 全局
collation_connection 都有
collat​​ion_database(note 1) 都有
collation_server 都有
completion_type 都有
concurrent_insert 全局
connect_timeout 全局
connection_control_failed_connections_threshold 全局
connection_control_max_connection_delay 全局
connection_control_min_connection_delay 全局
connection_memory_chunk_size 都有
connection_memory_limit 都有
core_file 全局
create_admin_listener_thread 全局
cte_max_recursion_depth 都有
daemon_memcached_enable_binlog 全局
daemon_memcached_engine_lib_name 全局
daemon_memcached_engine_lib_path 全局
daemon_memcached_option 全局
daemon_memcached_r_batch_size 全局
daemon_memcached_w_batch_size 全局
datadir 全局
debug 都有
debug_sync 会话
default_authentication_plugin 全局
default_collat​​ion_for_utf8mb4 都有
default_password_lifetime 全局
default_storage_engine 都有
default_table_encryption 都有
default_tmp_storage_engine 都有
default_week_format 都有
delay_key_write 全局
delayed_insert_limit 全局
delayed_insert_timeout 全局
delayed_queue_size 全局
disabled_storage_engines 全局
disconnect_on_expired_pa​​ssword 全局
div_precision_increment 都有
dragnet.log_error_filter_rules 全局
end_markers_in_json 都有
enforce_gtid_consistency 全局
enterprise_encryption.maximum_rsa_key_size 全局
enterprise_encryption.rsa_support_legacy_padding 全局
eq_range_index_dive_limit 都有
error_count 会话
event_scheduler 全局
expire_logs_days 全局
explicit_defaults_for_timestamp 都有
external_user 会话
flush 全局
flush_time 全局
foreign_key_checks 都有
ft_boolean_syntax 全局
ft_max_word_len 全局
ft_min_word_len 全局
ft_query_expansion_limit 全局
ft_stopword_file 全局
general_log 全局
general_log_file 全局
generated_random_password_length 都有
global_connection_memory_limit 全局
global_connection_memory_tracking 都有
group_concat_max_len 都有
group_replication_advertise_recovery_endpoints 全局
group_replication_allow_local_lower_version_join 全局
group_replication_auto_increment_increment 全局
group_replication_autorejoin_tries 全局
group_replication_bootstrap_group 全局
group_replication_clone_threshold 全局
group_replication_communication_debug_options 全局
group_replication_communication_max_message_size 全局
group_replication_communication_stack 全局
group_replication_components_stop_timeout 全局
group_replication_compression_threshold 全局
group_replication_consistency 都有
group_replication_enforce_update_everywhere_checks 全局
group_replication_exit_state_action 全局
group_replication_flow_control_applier_threshold 全局
group_replication_flow_control_certifier_threshold 全局
group_replication_flow_control_hold_percent 全局
group_replication_flow_control_max_commit_quota 全局
group_replication_flow_control_member_quota_percent 全局
group_replication_flow_control_min_quota 全局
group_replication_flow_control_min_recovery_quota 全局
group_replication_flow_control_mode 全局
group_replication_flow_control_period 全局
group_replication_flow_control_release_percent 全局
group_replication_force_members 全局
group_replication_group_name 全局
group_replication_group_seeds 全局
group_replication_gtid_assignment_block_size 全局
group_replication_ip_allowlist 全局
group_replication_ip_whitelist 全局
group_replication_local_address 全局
group_replication_member_expel_timeout 全局
group_replication_member_weight 全局
group_replication_message_cache_size 全局
group_replication_paxos_single_leader 全局
group_replication_poll_spin_loops 全局
group_replication_recovery_complete_at 全局
group_replication_recovery_compression_algorithms 全局
group_replication_recovery_get_public_key 全局
group_replication_recovery_public_key_path 全局
group_replication_recovery_reconnect_interval 全局
group_replication_recovery_retry_count 全局
group_replication_recovery_ssl_ca 全局
group_replication_recovery_ssl_capath 全局
group_replication_recovery_ssl_cert 全局
group_replication_recovery_ssl_cipher 全局
group_replication_recovery_ssl_crl 全局
group_replication_recovery_ssl_crlpath 全局
group_replication_recovery_ssl_key 全局
group_replication_recovery_ssl_verify_server_cert 全局
group_replication_recovery_tls_ciphersuites 全局
group_replication_recovery_tls_version 全局
group_replication_recovery_use_ssl 全局
group_replication_recovery_zstd_compression_level 全局
group_replication_single_primary_mode 全局
group_replication_ssl_mode 全局
group_replication_start_on_boot 全局
group_replication_tls_source 全局
group_replication_transaction_size_limit 全局
group_replication_unreachable_majority_timeout 全局
group_replication_view_change_uuid 全局
gtid_executed 全局
gtid_executed_compression_period 全局
gtid_mode 全局
gtid_next 会话
gtid_owned 都有
gtid_purged 全局
have_compress 全局
have_dynamic_loading 全局
have_geometry 全局
have_openssl 全局
have_profiling 全局
have_query_cache 全局
have_rtree_keys 全局
have_ssl 全局
have_statement_timeout 全局
have_symlink 全局
histogram_generation_max_mem_size 都有
host_cache_size 全局
hostname 全局
identity 会话
immediate_server_version 会话
information_schema_stats_expiry 都有
init_connect 全局
init_file 全局
init_replica 全局
init_slave 全局
innodb_adaptive_flushing 全局
innodb_adaptive_flushing_lwm 全局
innodb_adaptive_hash_index 全局
innodb_adaptive_hash_index_parts 全局
innodb_adaptive_max_sleep_delay 全局
innodb_api_bk_commit_interval 全局
innodb_api_disable_rowlock 全局
innodb_api_enable_binlog 全局
innodb_api_enable_mdl 全局
innodb_api_trx_level 全局
innodb_autoextend_increment 全局
innodb_autoinc_lock_mode 全局
innodb_background_drop_list_empty 全局
innodb_buffer_pool_chunk_size 全局
innodb_buffer_pool_debug 全局
innodb_buffer_pool_dump_at_shutdown 全局
innodb_buffer_pool_dump_now 全局
innodb_buffer_pool_dump_pct 全局
innodb_buffer_pool_filename 全局
innodb_buffer_pool_in_core_file 全局
innodb_buffer_pool_instances 全局
innodb_buffer_pool_load_abort 全局
innodb_buffer_pool_load_at_startup 全局
innodb_buffer_pool_load_now 全局
innodb_buffer_pool_size 全局
innodb_change_buffer_max_size 全局
innodb_change_buffering 全局
innodb_change_buffering_debug 全局
innodb_checkpoint_disabled 全局
innodb_checksum_algorithm 全局
innodb_cmp_per_index_enabled 全局
innodb_commit_concurrency 全局
innodb_compress_debug 全局
innodb_compression_failure_threshold_pct 全局
innodb_compression_level 全局
innodb_compression_pad_pct_max 全局
innodb_concurrency_tickets 全局
innodb_data_file_path 全局
innodb_data_home_dir 全局
innodb_ddl_buffer_size 都有
innodb_ddl_log_crash_reset_debug 全局
innodb_ddl_threads 都有
innodb_deadlock_detect 全局
innodb_dedicated_server 全局
innodb_default_row_format 全局
innodb_directories 全局
innodb_disable_sort_file_cache 全局
innodb_doublewrite 全局 变化
innodb_doublewrite_batch_size 全局
innodb_doublewrite_dir 全局
innodb_doublewrite_files 全局
innodb_doublewrite_pages 全局
innodb_extend_and_initialize 全局
innodb_fast_shutdown 全局
innodb_fil_make_page_dirty_debug 全局
innodb_file_per_table 全局
innodb_fill_factor 全局
innodb_flush_log_at_timeout 全局
innodb_flush_log_at_trx_commit 全局
innodb_flush_method 全局
innodb_flush_neighbors 全局
innodb_flush_sync 全局
innodb_flushing_avg_loops 全局
innodb_force_load_corrupted 全局
innodb_force_recovery 全局
innodb_fsync_threshold 全局
innodb_ft_aux_table 全局
innodb_ft_cache_size 全局
innodb_ft_enable_diag_print 全局
innodb_ft_enable_stopword 都有
innodb_ft_max_token_size 全局
innodb_ft_min_token_size 全局
innodb_ft_num_word_optimize 全局
innodb_ft_result_cache_limit 全局
innodb_ft_server_stopword_table 全局
innodb_ft_sort_pll_degree 全局
innodb_ft_total_cache_size 全局
innodb_ft_user_stopword_table 都有
innodb_idle_flush_pct 全局
innodb_io_capacity 全局
innodb_io_capacity_max 全局
innodb_limit_optimistic_insert_debug 全局
innodb_lock_wait_timeout 都有
innodb_log_buffer_size 全局 变化
innodb_log_checkpoint_fuzzy_now 全局
innodb_log_checkpoint_now 全局
innodb_log_checksums 全局
innodb_log_compressed_pa​​ges 全局
innodb_log_file_size 全局
innodb_log_files_in_group 全局
innodb_log_group_home_dir 全局
innodb_log_spin_cpu_abs_lwm 全局
innodb_log_spin_cpu_pct_hwm 全局
innodb_log_wait_for_flush_spin_hwm 全局
innodb_log_write_ahead_size 全局
innodb_log_writer_threads 全局
innodb_lru_scan_depth 全局
innodb_max_dirty_pages_pct 全局
innodb_max_dirty_pages_pct_lwm 全局
innodb_max_purge_lag 全局
innodb_max_purge_lag_delay 全局
innodb_max_undo_log_size 全局
innodb_merge_threshold_set_all_debug 全局
innodb_monitor_disable 全局
innodb_monitor_enable 全局
innodb_monitor_reset 全局
innodb_monitor_reset_all 全局
innodb_numa_interleave 全局
innodb_old_blocks_pct 全局
innodb_old_blocks_time 全局
innodb_online_alter_log_max_size 全局
innodb_open_files 全局 变化
innodb_optimize_fulltext_only 全局
innodb_page_cleaners 全局
innodb_page_size 全局
innodb_parallel_read_threads 会话
innodb_print_all_deadlocks 全局
innodb_print_ddl_logs 全局
innodb_purge_batch_size 全局
innodb_purge_rseg_truncate_frequency 全局
innodb_purge_threads 全局
innodb_random_read_ahead 全局
innodb_read_ahead_threshold 全局
innodb_read_io_threads 全局
innodb_read_only 全局
innodb_redo_log_archive_dirs 全局
innodb_redo_log_capacity 全局
innodb_redo_log_encrypt 全局
innodb_replication_delay 全局
innodb_rollback_on_timeout 全局
innodb_rollback_segments 全局
innodb_saved_pa​​ge_number_debug 全局
innodb_segment_reserve_factor 全局
innodb_sort_buffer_size 全局
innodb_spin_wait_delay 全局
innodb_spin_wait_pause_multiplier 全局
innodb_stats_auto_recalc 全局
innodb_stats_include_delete_marked 全局
innodb_stats_method 全局
innodb_stats_on_metadata 全局
innodb_stats_persistent 全局
innodb_stats_persistent_sample_pages 全局
innodb_stats_transient_sample_pages 全局
innodb_status_output 全局
innodb_status_output_locks 全局
innodb_strict_mode 都有
innodb_sync_array_size 全局
innodb_sync_debug 全局
innodb_sync_spin_loops 全局
innodb_table_locks 都有
innodb_temp_data_file_path 全局
innodb_temp_tablespaces_dir 全局
innodb_thread_concurrency 全局
innodb_thread_sleep_delay 全局
innodb_tmpdir 都有
innodb_trx_purge_view_update_only_debug 全局
innodb_trx_rseg_n_slots_debug 全局
innodb_undo_directory 全局
innodb_undo_log_encrypt 全局
innodb_undo_log_truncate 全局
innodb_undo_tablespaces 全局 变化
innodb_use_fdatasync 全局
innodb_use_native_aio 全局
innodb_validate_tablespace_paths 全局
innodb_version 全局
innodb_write_io_threads 全局
insert_id 会话
interactive_timeout 都有
internal_tmp_disk_storage_engine 全局
internal_tmp_mem_storage_engine 都有
join_buffer_size 都有
keep_files_on_create 都有
key_buffer_size 全局
key_cache_age_threshold 全局
key_cache_block_size 全局
key_cache_division_limit 全局
keyring_aws_cmk_id 全局
keyring_aws_conf_file 全局
keyring_aws_data_file 全局
keyring_aws_region 全局
keyring_encrypted_file_data 全局
keyring_encrypted_file_password 全局
keyring_file_data 全局
keyring_hashicorp_auth_path 全局
keyring_hashicorp_ca_path 全局
keyring_hashicorp_caching 全局
keyring_hashicorp_commit_auth_path 全局
keyring_hashicorp_commit_ca_path 全局
keyring_hashicorp_commit_caching 全局
keyring_hashicorp_commit_role_id 全局
keyring_hashicorp_commit_server_url 全局
keyring_hashicorp_commit_store_path 全局
keyring_hashicorp_role_id 全局
keyring_hashicorp_secret_id 全局
keyring_hashicorp_server_url 全局
keyring_hashicorp_store_path 全局
keyring_oci_ca_certificate 全局
keyring_oci_compartment 全局
keyring_oci_encryption_endpoint 全局
keyring_oci_key_file 全局
keyring_oci_key_fingerprint 全局
keyring_oci_management_endpoint 全局
keyring_oci_master_key 全局
keyring_oci_secrets_endpoint 全局
keyring_oci_tenancy 全局
keyring_oci_user 全局
keyring_oci_vaults_endpoint 全局
keyring_oci_virtual_vault 全局
keyring_okv_conf_dir 全局
keyring_operations 全局
language 全局
large_files_support 全局
large_page_size 全局
large_pages 全局
last_insert_id 会话
lc_messages 都有
lc_messages_dir 全局
lc_time_names 都有
license 全局
local_infile 全局
lock_order 全局
lock_order_debug_loop 全局
lock_order_debug_missing_arc 全局
lock_order_debug_missing_key 全局
lock_order_debug_missing_unlock 全局
lock_order_dependencies 全局
lock_order_extra_dependencies 全局
lock_order_output_directory 全局
lock_order_print_txt 全局
lock_order_trace_loop 全局
lock_order_trace_missing_arc 全局
lock_order_trace_missing_key 全局
lock_order_trace_missing_unlock 全局
lock_wait_timeout 都有
locked_in_memory 全局
log_bin 全局
log_bin_basename 全局
log_bin_index 全局
log_bin_trust_function_creators 全局
log_bin_use_v1_row_events 全局
log_error 全局
log_error_services 全局
log_error_suppression_list 全局
log_error_verbosity 全局
log_output 全局
log_queries_not_using_indexes 全局
log_raw 全局
log_replica_updates 全局
log_slave_updates 全局
log_slow_admin_statements 全局
log_slow_extra 全局
log_slow_replica_statements 全局
log_slow_slave_statements 全局
log_statements_unsafe_for_binlog 全局
log_syslog 全局
log_syslog_facility 全局
log_syslog_include_pid 全局
log_syslog_tag 全局
log_throttle_queries_not_using_indexes 全局
log_timestamps 全局
long_query_time 都有
low_priority_updates 都有
lower_case_file_system 全局
lower_case_table_names 全局
mandatory_roles 全局
master_info_repository 全局
master_verify_checksum 全局
max_allowed_packet 都有
max_binlog_cache_size 全局
max_binlog_size 全局
max_binlog_stmt_cache_size 全局
max_connect_errors 全局
max_connections 全局
max_delayed_threads 都有
max_digest_length 全局
max_error_count 都有
max_execution_time 都有
heap_table_size 都有
max_insert_delayed_threads 都有
max_join_size 都有
max_length_for_sort_data 都有
max_points_in_geometry 都有
max_prepared_stmt_count 全局
max_relay_log_size 全局
max_seeks_for_key 都有
max_sort_length 都有
max_sp_recursion_depth 都有
max_user_connections 都有
max_write_lock_count 全局
mecab_rc_file 全局
metadata_locks_cache_size 全局
metadata_locks_hash_instances 全局
min_examined_row_limit 都有
myisam_data_pointer_size 全局
myisam_max_sort_file_size 全局
myisam_mmap_size 全局
myisam_recover_options 全局
myisam_repair_threads 都有
myisam_sort_buffer_size 都有
myisam_stats_method 都有
myisam_use_mmap 全局
mysql_firewall_mode 全局
mysql_firewall_trace 全局
mysql_native_password_proxy_users 全局
mysqlx_bind_address 全局
mysqlx_compression_algorithms 全局
mysqlx_connect_timeout 全局
mysqlx_deflate_default_compression_level 全局
mysqlx_deflate_max_client_compression_level 全局
mysqlx_document_id_unique_prefix 全局
mysqlx_enable_hello_notice 全局
mysqlx_idle_worker_thread_timeout 全局
mysqlx_interactive_timeout 全局
mysqlx_lz4_default_compression_level 全局
mysqlx_lz4_max_client_compression_level 全局
mysqlx_max_allowed_pa​​cket 全局
mysqlx_max_connections 全局
mysqlx_min_worker_threads 全局
mysqlx_port 全局
mysqlx_port_open_timeout 全局
mysqlx_read_timeout 会话
mysqlx_socket 全局
mysqlx_ssl_ca 全局
mysqlx_ssl_capath 全局
mysqlx_ssl_cert 全局
mysqlx_ssl_cipher 全局
mysqlx_ssl_crl 全局
mysqlx_ssl_crlpath 全局
mysqlx_ssl_key 全局
mysqlx_wait_timeout 会话
mysqlx_write_timeout 会话
mysqlx_zstd_default_compression_level 全局
mysqlx_zstd_max_client_compression_level 全局
named_pipe 全局
named_pipe_full_access_group 全局
ndb_allow_copying_alter_table 都有
ndb_applier_allow_skip_epoch 全局
ndb_autoincrement_prefetch_sz 都有
ndb_batch_size 全局
ndb_blob_read_batch_bytes 都有
ndb_blob_write_batch_bytes 都有
ndb_cache_check_time 全局
ndb_clear_apply_status 全局
ndb_cluster_connection_pool 全局
ndb_cluster_connection_pool_nodeids 全局
ndb_conflict_role 全局
ndb_data_node_neighbor 全局
ndb_dbg_check_shares 都有
ndb_default_column_format 全局
ndb_default_column_format 全局
ndb_deferred_constraints 都有
ndb_deferred_constraints 都有
ndb_distribution 全局
ndb_distribution 全局
ndb_eventbuffer_free_percent 全局
ndb_eventbuffer_max_alloc 全局
ndb_extra_logging 全局
ndb_force_send 都有
ndb_fully_replicated 都有
ndb_index_stat_enable 都有
ndb_index_stat_option 都有
ndb_join_pushdown 都有
ndb_log_apply_status 全局
ndb_log_apply_status 全局
ndb_log_bin 都有
ndb_log_binlog_index 全局
ndb_log_empty_epochs 全局
ndb_log_empty_epochs 全局
ndb_log_empty_update 全局
ndb_log_empty_update 全局
ndb_log_exclusive_reads 都有
ndb_log_exclusive_reads 都有
ndb_log_fail_terminate 全局
ndb_log_orig 全局
ndb_log_orig 全局
ndb_log_transaction_compression 全局
ndb_log_transaction_compression_level_zstd 全局
ndb_log_transaction_id 全局
ndb_log_transaction_id 全局
ndb_log_update_as_write 全局
ndb_log_update_minimal 全局
ndb_log_updated_only 全局
ndb_metadata_check 全局
ndb_metadata_check_interval 全局
ndb_metadata_sync 全局
ndb_optimization_delay 全局
ndb_optimized_node_selection 全局
ndb_read_backup 全局
ndb_recv_thread_activation_threshold 全局
ndb_recv_thread_cpu_mask 全局
ndb_replica_batch_size 全局
ndb_replica_blob_write_batch_bytes 全局
Ndb_replica_max_replicated_epoch 全局
ndb_report_thresh_binlog_epoch_slip 全局
ndb_report_thresh_binlog_mem_usage 全局
ndb_row_checksum 都有
ndb_schema_dist_lock_wait_timeout 全局
ndb_schema_dist_timeout 全局
ndb_schema_dist_timeout 全局
ndb_schema_dist_upgrade_allowed 全局
ndb_show_foreign_key_mock_tables 全局
ndb_slave_conflict_role 全局
Ndb_system_name 全局
ndb_table_no_logging 会话
ndb_table_temporary 会话
ndb_use_copying_alter_table 都有
ndb_use_exact_count 都有
ndb_use_transactions 都有
ndb_version 全局
ndb_version_string 全局
ndb_wait_connected 全局
ndb_wait_setup 全局
ndbinfo_database 全局
ndbinfo_max_bytes 都有
ndbinfo_max_rows 都有
ndbinfo_offline 全局
ndbinfo_show_hidden 都有
ndbinfo_table_prefix 全局
ndbinfo_version 全局
net_buffer_length 都有
net_read_timeout 都有
net_retry_count 都有
net_write_timeout 都有
ngram_token_size 全局
offline_mode 全局
old_alter_table 都有
open_files_limit 全局
optimizer_prune_level 都有
optimizer_search_depth 都有
optimizer_switch 都有
optimizer_trace 都有
optimizer_trace_features 都有
optimizer_trace_limit 都有
optimizer_trace_max_mem_size 都有
optimizer_trace_offset 都有
original_commit_timestamp 会话
original_server_version 会话
parser_max_mem_size 都有
partial_revokes 全局
password_history 全局
password_require_current 全局
password_reuse_interval 全局
performance_schema 全局
performance_schema_accounts_size 全局
performance_schema_digests_size 全局
performance_schema_error_size 全局
performance_schema_events_stages_history_long_size 全局
performance_schema_events_stages_history_size 全局
performance_schema_events_statements_history_long_size 全局
performance_schema_events_statements_history_size 全局
performance_schema_events_transactions_history_long_size 全局
performance_schema_events_transactions_history_size 全局
performance_schema_events_waits_history_long_size 全局
performance_schema_events_waits_history_size 全局
performance_schema_hosts_size 全局
performance_schema_max_cond_classes 全局
performance_schema_max_cond_instances 全局
performance_schema_max_digest_length 全局
performance_schema_max_digest_sample_age 全局
performance_schema_max_file_classes 全局
performance_schema_max_file_handles 全局
performance_schema_max_file_instances 全局
performance_schema_max_index_stat 全局
performance_schema_max_memory_classes 全局
performance_schema_max_metadata_locks 全局
performance_schema_max_mutex_classes 全局
performance_schema_max_mutex_instances 全局
performance_schema_max_prepared_statements_instances 全局
performance_schema_max_program_instances 全局
performance_schema_max_rwlock_classes 全局
performance_schema_max_rwlock_instances 全局
performance_schema_max_socket_classes 全局
performance_schema_max_socket_instances 全局
performance_schema_max_sql_text_length 全局
performance_schema_max_stage_classes 全局
performance_schema_max_statement_classes 全局
performance_schema_max_statement_stack 全局
performance_schema_max_table_handles 全局
performance_schema_max_table_instances 全局
performance_schema_max_table_lock_stat 全局
performance_schema_max_thread_classes 全局
performance_schema_max_thread_instances 全局
performance_schema_session_connect_attrs_size 全局
performance_schema_setup_actors_size 全局
performance_schema_setup_objects_size 全局
performance_schema_show_processlist 全局
performance_schema_users_size 全局
persist_only_admin_x509_subject 全局
persist_sensitive_variables_in_plaintext 全局
persisted_globals_load 全局
pid_file 全局
plugin_dir 全局
mysqld_plugin-load 全局
plugin_load_add 全局
mysqld_port 全局
preload_buffer_size 都有
print_identified_with_as_hex 都有
profiling 都有
profiling_history_size 都有
protocol_compression_algorithms 全局
protocol_version 全局
proxy_user 会话
pseudo_replica_mode 会话
pseudo_slave_mode 会话
pseudo_thread_id 会话
query_alloc_block_size 都有
query_prealloc_size 都有
rand_seed1 会话
rand_seed2 会话
range_alloc_block_size 都有
range_optimizer_max_mem_size 都有
rbr_exec_mode 会话
read_buffer_size 都有
read_only 全局
read_rnd_buffer_size 都有
regexp_stack_limit 全局
regexp_time_limit 全局
relay_log 全局
relay_log_basename 全局
relay_log_index 全局
relay_log_info_file 全局
relay_log_info_repository 全局
relay_log_purge 全局
relay_log_recovery 全局
relay_log_space_limit 全局
replica_allow_batching 全局
replica_checkpoint_group 全局
replica_checkpoint_period 全局
replica_compressed_protocol 全局
replica_exec_mode 全局
replica_load_tmpdir 全局
replica_max_allowed_pa​​cket 全局
replica_net_timeout 全局
replica_parallel_type 全局
replica_parallel_workers 全局
replica_pending_jobs_size_max 全局
replica_preserve_commit_order 全局
replica_skip_errors 全局
replica_sql_verify_checksum 全局
replica_transaction_retries 全局
replica_type_conversions 全局
replication_optimize_for_static_plugin_config 全局
replication_sender_observe_commit_only 全局
report_host 全局
report_password 全局
report_port 全局
report_user 全局
require_row_format 会话
require_secure_transport 全局
resultset_metadata 会话
rewriter_enabled 全局
rewriter_enabled_for_threads_without_privilege_checks 全局
rewriter_verbose 全局
rpl_read_size 全局
rpl_semi_sync_master_enabled 全局
rpl_semi_sync_master_timeout 全局
rpl_semi_sync_master_trace_level 全局
rpl_semi_sync_master_wait_for_slave_count 全局
rpl_semi_sync_master_wait_no_slave 全局
rpl_semi_sync_master_wait_point 全局
rpl_semi_sync_replica_enabled 全局
rpl_semi_sync_replica_trace_level 全局
rpl_semi_sync_slave_enabled 全局
rpl_semi_sync_slave_trace_level 全局
rpl_semi_sync_source_enabled 全局
rpl_semi_sync_source_timeout 全局
rpl_semi_sync_source_trace_level 全局
rpl_semi_sync_source_wait_for_replica_count 全局
rpl_semi_sync_source_wait_no_replica 全局
rpl_semi_sync_source_wait_point 全局
rpl_stop_replica_timeout 全局
rpl_stop_slave_timeout 全局
schema_definition_cache 全局
secondary_engine_cost_threshold 会话
secure_file_priv 全局
select_into_buffer_size 都有
select_into_disk_sync 都有
select_into_disk_sync_delay 都有
server_id 全局
server_id_bits 全局
server_uuid 全局
session_track_gtids 都有
session_track_schema 都有
session_track_state_change 都有
session_track_system_variables 都有
session_track_transaction_info 都有
sha256_password_auto_generate_rsa_keys 全局
sha256_password_private_key_path 全局
sha256_password_proxy_users 全局
sha256_password_public_key_path 全局
shared_memory 全局
shared_memory_base_name 全局
show_create_table_skip_secondary_engine 会话
show_create_table_verbosity 都有
show_gipk_in_create_table_and_information_schema 都有
show_old_temporals 都有
skip_external_locking 全局
skip_name_resolve 全局
skip_networking 全局
skip_replica_start 全局
skip-show-database 全局
skip_slave_start 全局
slave_allow_batching 全局
slave_checkpoint_group 全局
slave_checkpoint_period 全局
slave_compressed_protocol 全局
slave_exec_mode 全局
slave_load_tmpdir 全局
slave_max_allowed_pa​​cket 全局
slave_net_timeout 全局
slave_parallel_type 全局
slave_parallel_workers 全局
slave_pending_jobs_size_max 全局
slave_preserve_commit_order 全局
slave_rows_search_algorithms 全局
slave_skip_errors 全局
slave_sql_verify_checksum 全局
slave_transaction_retries 全局
slave_type_conversions 全局
slow_launch_time 全局
slow_query_log 全局
slow_query_log_file 全局
mysqld_socket 全局
sort_buffer_size 都有
source_verify_checksum 全局
sql_auto_is_null 都有
sql_big_selects 都有
sql_buffer_result 都有
sql_generate_invisible_primary_key 都有
sql_log_bin 会话
sql_log_off 都有
sql_mode 都有
sql_notes 都有
sql_quote_show_create 都有
sql_replica_skip_counter 全局
sql_require_primary_key 都有
sql_safe_updates 都有
sql_select_limit 都有
sql_slave_skip_counter 全局
sql_warnings 都有
ssl_ca 全局 变化
ssl_capath 全局 变化
ssl_cert 全局 变化
ssl_cipher 全局 变化
ssl_crl 全局 变化
ssl_crlpath 全局 变化
ssl_fips_mode 全局
ssl_key 全局 变化
ssl_session_cache_mode 全局
ssl_session_cache_timeout 全局
stored_program_cache 全局
stored_program_definition_cache 全局
super_read_only 全局
sync_binlog 全局
sync_master_info 全局
sync_relay_log 全局
sync_relay_log_info 全局
sync_source_info 全局
syseventlog.facility 全局
syseventlog.include_pid 全局
syseventlog.tag 全局
system_time_zone 全局
table_definition_cache 全局
table_encryption_privilege_check 全局
table_open_cache 全局
table_open_cache_instances 全局
tablespace_definition_cache 全局
temptable_max_mmap 全局
temptable_max_ram 全局
temptable_use_mmap 全局
terminology_use_previous 都有
thread_cache_size 全局
thread_handling 全局
thread_pool_algorithm 全局
thread_pool_dedicated_listeners 全局
thread_pool_high_priority_connection 都有
thread_pool_max_active_query_threads 全局
thread_pool_max_transactions_limit 全局
thread_pool_max_unused_threads 全局
thread_pool_prio_kickup_timer 全局
thread_pool_query_threads_per_group 全局
pool_size 全局
thread_pool_stall_limit 全局
thread_pool_transaction_delay 全局
thread_stack 全局
time_zone 都有
timestamp 会话
tls_ciphersuites 全局
tls_version 全局 变化
tmp_table_size 都有
tmpdir 全局
transaction_alloc_block_size 都有
transaction_allow_batching 会话
transaction-isolation 都有
transaction_prealloc_size 都有
transaction_read_only 都有
transaction_write_set_extraction 都有
unique_checks 都有
updatable_views_with_limit 都有
use_secondary_engine 会话
validate_password_check_user_name 全局
validate_password_dictionary_file 全局
validate_password_length 全局
validate_password_mixed_case_count 全局
validate_password_number_count 验证密码 全局
validate_password_policy 全局
validate_password_special_char_count 全局
validate_password.check_user_name 全局
validate_password.dictionary_file 全局
validate_password.length 全局
validate_password.mixed_case_count 全局
validate_password.number_count 全局
validate_password.policy 全局
validate_password.special_char_count 全局
version 全局
version_comment 全局
version_compile_machine 全局
version_compile_os 全局
version_compile_zlib 全局
version_tokens_session 都有
version_tokens_session_number 都有
wait_timeout 都有
warning_count 会话
windowing_use_high_precision 都有
xa_detach_on_prepare 都有

笔记:

1. 此选项是动态的,但只能由服务器设置。您不应手动设置此变量。