MySQL 5.6所有系统变量(系统参数)

MySQL 5.6所有系统变量

地址:https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html

5.1.5 Server System Variables

The MySQL server maintains many system variables that indicate how it is configured. Each system variable has a default value. System variables can be set at server startup using options on the command line or in an option file. Most of them can be changed dynamically at runtime using the SET statement, which enables you to modify operation of the server without having to stop and restart it. Setting the global value of a system variable requires the SUPER privilege. For some system variables, setting the session value also requires the SUPER privilege; if so, it is indicated in the variable description. You can also use system variable values in expressions.

There are several ways to see the names and values of system variables:

  • To see the values that a server will use based on its compiled-in defaults and any option files that it reads, use this command:

    mysqld --verbose --help
    
  • To see the values that a server will use based on its compiled-in defaults, ignoring the settings in any option files, use this command:
    mysqld --no-defaults --verbose --help
    
  • To see the current values used by a running server, use the SHOW VARIABLES statement.

This section includes a table that lists all system variables and following the table provides a description of each one. Variables with no version indicated are present in all MySQL 5.6 releases. For more information about manipulation of system variables, seeSection 5.1.6, “Using System Variables”.

Table 5.3 System Variable Summary

Name Cmd-Line Option File System Var Var Scope Dynamic
audit_log_buffer_size Yes Yes Yes Global No
audit_log_connection_policy Yes Yes Yes Global Yes
audit_log_current_session     Yes Both No
audit_log_exclude_accounts Yes Yes Yes Global Yes
audit_log_file Yes Yes Yes Global No
audit_log_flush     Yes Global Yes
audit_log_format Yes Yes Yes Global No
audit_log_include_accounts Yes Yes Yes Global Yes
audit_log_policy Yes Yes Yes Global Varies
audit_log_rotate_on_size Yes Yes Yes Global Yes
audit_log_statement_policy Yes Yes Yes Global Yes
audit_log_strategy Yes Yes Yes Global No
auto_increment_increment     Yes Both Yes
auto_increment_offset     Yes Both Yes
autocommit Yes Yes Yes Both Yes
automatic_sp_privileges     Yes Global Yes
avoid_temporal_upgrade Yes Yes Yes Global Yes
back_log     Yes Global No
basedir Yes Yes Yes Global No
big-tables Yes Yes     Yes
Variablebig_tables     Yes Both Yes
bind-address Yes Yes     No
Variablebind_address     Yes Global No
binlog_cache_size Yes Yes Yes Global Yes
binlog_checksum     Yes Global Yes
binlog_direct_non_transactional_updates Yes Yes Yes Both Yes
binlog_error_action Yes Yes Yes Both Yes
binlog-format Yes Yes     Yes
Variablebinlog_format     Yes Both Yes
binlog_gtid_simple_recovery Yes Yes Yes Global No
binlog_max_flush_queue_time     Yes Global Yes
binlog_order_commits     Yes Global Yes
binlog_row_image Yes Yes Yes Both Yes
binlog_rows_query_log_events     Yes Both Yes
binlog_stmt_cache_size Yes Yes Yes Global Yes
binlogging_impossible_mode Yes Yes Yes Both Yes
block_encryption_mode Yes Yes Yes Both Yes
bulk_insert_buffer_size Yes Yes Yes Both Yes
character_set_client     Yes Both Yes
character_set_connection     Yes Both Yes
character_set_database[a]     Yes Both Yes
character-set-filesystem Yes Yes     Yes
Variablecharacter_set_filesystem     Yes Both Yes
character_set_results     Yes Both Yes
character-set-server Yes Yes     Yes
Variablecharacter_set_server     Yes Both Yes
character_set_system     Yes Global No
character-sets-dir Yes Yes     No
Variablecharacter_sets_dir     Yes Global No
collation_connection     Yes Both Yes
collation_database[b]     Yes Both Yes
collation-server Yes Yes     Yes
Variablecollation_server     Yes Both Yes
completion_type Yes Yes Yes Both Yes
concurrent_insert Yes Yes Yes Global Yes
connect_timeout Yes Yes Yes Global Yes
connection_control_failed_connections_threshold Yes Yes Yes Global Yes
connection_control_max_connection_delay Yes Yes Yes Global Yes
connection_control_min_connection_delay Yes Yes Yes Global Yes
core_file     Yes Global No
create_old_temporals Yes Yes Yes Global No
daemon_memcached_enable_binlog Yes Yes Yes Global No
daemon_memcached_engine_lib_name Yes Yes Yes Global No
daemon_memcached_engine_lib_path Yes Yes Yes Global No
daemon_memcached_option Yes Yes Yes Global No
daemon_memcached_r_batch_size Yes Yes Yes Global No
daemon_memcached_w_batch_size Yes Yes Yes Global No
datadir Yes Yes Yes Global No
date_format     Yes Global No
datetime_format     Yes Global No
debug Yes Yes Yes Both Yes
debug_sync     Yes Session Yes
default-storage-engine Yes Yes     Yes
Variabledefault_storage_engine     Yes Both Yes
default_tmp_storage_engine Yes Yes Yes Both Yes
default_week_format Yes Yes Yes Both Yes
delay-key-write Yes Yes     Yes
Variabledelay_key_write     Yes Global Yes
delayed_insert_limit Yes Yes Yes Global Yes
delayed_insert_timeout Yes Yes Yes Global Yes
delayed_queue_size Yes Yes Yes Global Yes
disable-gtid-unsafe-statements Yes Yes Yes Global No
disable_gtid_unsafe_statements Yes Yes Yes Global No
disconnect_on_expired_password Yes Yes Yes Session No
div_precision_increment Yes Yes Yes Both Yes
end_markers_in_json     Yes Both Yes
enforce-gtid-consistency Yes Yes Yes Global No
enforce_gtid_consistency Yes Yes Yes Global No
engine-condition-pushdown Yes Yes     Yes
Variableengine_condition_pushdown     Yes Both Yes
eq_range_index_dive_limit     Yes Both Yes
error_count     Yes Session No
event-scheduler Yes Yes     Yes
Variableevent_scheduler     Yes Global Yes
expire_logs_days Yes Yes Yes Global Yes
explicit_defaults_for_timestamp Yes Yes Yes Both Yes
external_user     Yes Session No
flush Yes Yes Yes Global Yes
flush_time Yes Yes Yes Global Yes
foreign_key_checks     Yes Both Yes
ft_boolean_syntax Yes Yes Yes Global Yes
ft_max_word_len Yes Yes Yes Global No
ft_min_word_len Yes Yes Yes Global No
ft_query_expansion_limit Yes Yes Yes Global No
ft_stopword_file Yes Yes Yes Global No
general-log Yes Yes     Yes
Variablegeneral_log     Yes Global Yes
general_log_file Yes Yes Yes Global Yes
group_concat_max_len Yes Yes Yes Both Yes
gtid_done     Yes Both No
gtid_executed     Yes Both No
gtid_lost     Yes Global No
gtid-mode Yes Yes     No
Variablegtid_mode     Yes Global No
gtid_mode     Yes Global No
gtid_next     Yes Session Yes
gtid_owned     Yes Both No
gtid_purged     Yes Global Yes
have_compress     Yes Global No
have_crypt     Yes Global No
have_csv     Yes Global No
have_dynamic_loading     Yes Global No
have_geometry     Yes Global No
have_innodb     Yes Global No
have_ndbcluster     Yes Global No
have_openssl     Yes Global No
have_partitioning     Yes Global No
have_profiling     Yes Global No
have_query_cache     Yes Global No
have_rtree_keys     Yes Global No
have_ssl     Yes Global No
have_symlink     Yes Global No
host_cache_size     Yes Global Yes
hostname     Yes Global No
identity     Yes Session Yes
ignore-builtin-innodb Yes Yes     No
Variableignore_builtin_innodb     Yes Global No
ignore_db_dirs     Yes Global No
init_connect Yes Yes Yes Global Yes
init-file Yes Yes     No
Variableinit_file     Yes Global No
init_slave Yes Yes Yes Global Yes
innodb_adaptive_flushing Yes Yes Yes Global Yes
innodb_adaptive_flushing_lwm Yes Yes Yes Global Yes
innodb_adaptive_hash_index Yes Yes Yes Global Yes
innodb_adaptive_max_sleep_delay Yes Yes Yes Global Yes
innodb_additional_mem_pool_size Yes Yes Yes Global No
innodb_api_bk_commit_interval Yes Yes Yes Global Yes
innodb_api_disable_rowlock Yes Yes Yes Global No
innodb_api_enable_binlog Yes Yes Yes Global No
innodb_api_enable_mdl Yes Yes Yes Global No
innodb_api_trx_level Yes Yes Yes Global Yes
innodb_autoextend_increment Yes Yes Yes Global Yes
innodb_autoinc_lock_mode Yes Yes Yes Global No
innodb_buffer_pool_dump_at_shutdown Yes Yes Yes Global Yes
innodb_buffer_pool_dump_now Yes Yes Yes Global Yes
innodb_buffer_pool_filename Yes Yes Yes Global Yes
innodb_buffer_pool_instances Yes Yes Yes Global No
innodb_buffer_pool_load_abort Yes Yes Yes Global Yes
innodb_buffer_pool_load_at_startup Yes Yes Yes Global No
innodb_buffer_pool_load_now Yes Yes Yes Global Yes
innodb_buffer_pool_size Yes Yes Yes Global No
innodb_change_buffer_max_size Yes Yes Yes Global Yes
innodb_change_buffering Yes Yes Yes Global Yes
innodb_change_buffering_debug Yes Yes Yes Global Yes
innodb_checksum_algorithm Yes Yes Yes Global Yes
innodb_checksums Yes Yes Yes Global No
innodb_cmp_per_index_enabled Yes Yes Yes Global Yes
innodb_commit_concurrency Yes Yes Yes Global Yes
innodb_compression_failure_threshold_pct Yes Yes Yes Global Yes
innodb_compression_level Yes Yes Yes Global Yes
innodb_compression_pad_pct_max Yes Yes Yes Global Yes
innodb_concurrency_tickets Yes Yes Yes Global Yes
innodb_data_file_path Yes Yes Yes Global No
innodb_data_home_dir Yes Yes Yes Global No
innodb_disable_sort_file_cache Yes Yes Yes Global Yes
innodb_doublewrite Yes Yes Yes Global No
innodb_fast_shutdown Yes Yes Yes Global Yes
innodb_fil_make_page_dirty_debug Yes Yes Yes Global Yes
innodb_file_format Yes Yes Yes Global Yes
innodb_file_format_check Yes Yes Yes Global No
innodb_file_format_max Yes Yes Yes Global Yes
innodb_file_per_table Yes Yes Yes Global Yes
innodb_flush_log_at_timeout     Yes Global Yes
innodb_flush_log_at_trx_commit Yes Yes Yes Global Yes
innodb_flush_method Yes Yes Yes Global No
innodb_flush_neighbors Yes Yes Yes Global Yes
innodb_flushing_avg_loops Yes Yes Yes Global Yes
innodb_force_load_corrupted Yes Yes Yes Global No
innodb_force_recovery Yes Yes Yes Global No
innodb_ft_aux_table     Yes Global Yes
innodb_ft_cache_size Yes Yes Yes Global No
innodb_ft_enable_diag_print Yes Yes Yes Global Yes
innodb_ft_enable_stopword Yes Yes Yes Global Yes
innodb_ft_max_token_size Yes Yes Yes Global No
innodb_ft_min_token_size Yes Yes Yes Global No
innodb_ft_num_word_optimize Yes Yes Yes Global Yes
innodb_ft_result_cache_limit Yes Yes Yes Global Yes
innodb_ft_server_stopword_table Yes Yes Yes Global Yes
innodb_ft_sort_pll_degree Yes Yes Yes Global No
innodb_ft_total_cache_size Yes Yes Yes Global No
innodb_ft_user_stopword_table Yes Yes Yes Both Yes
innodb_io_capacity Yes Yes Yes Global Yes
innodb_io_capacity_max Yes Yes Yes Global Yes
innodb_large_prefix Yes Yes Yes Global Yes
innodb_limit_optimistic_insert_debug Yes Yes Yes Global Yes
innodb_lock_wait_timeout Yes Yes Yes Both Yes
innodb_locks_unsafe_for_binlog Yes Yes Yes Global No
innodb_log_buffer_size Yes Yes Yes Global No
innodb_log_compressed_pages Yes Yes Yes Global Yes
innodb_log_file_size Yes Yes Yes Global No
innodb_log_files_in_group Yes Yes Yes Global No
innodb_log_group_home_dir Yes Yes Yes Global No
innodb_lru_scan_depth Yes Yes Yes Global Yes
innodb_max_dirty_pages_pct Yes Yes Yes Global Yes
innodb_max_dirty_pages_pct_lwm Yes Yes Yes Global Yes
innodb_max_purge_lag Yes Yes Yes Global Yes
innodb_max_purge_lag_delay Yes Yes Yes Global Yes
innodb_mirrored_log_groups Yes Yes Yes Global No
innodb_monitor_disable Yes Yes Yes Global Yes
innodb_monitor_enable Yes Yes Yes Global Yes
innodb_monitor_reset Yes Yes Yes Global Yes
innodb_monitor_reset_all Yes Yes Yes Global Yes
innodb_numa_interleave Yes Yes Yes Global No
innodb_old_blocks_pct Yes Yes Yes Global Yes
innodb_old_blocks_time Yes Yes Yes Global Yes
innodb_online_alter_log_max_size Yes Yes Yes Global Yes
innodb_open_files Yes Yes Yes Global No
innodb_optimize_fulltext_only Yes Yes Yes Global Yes
innodb_page_size Yes Yes Yes Global No
innodb_print_all_deadlocks Yes Yes Yes Global Yes
innodb_purge_batch_size Yes Yes Yes Global Yes
innodb_purge_threads Yes Yes Yes Global No
innodb_random_read_ahead Yes Yes Yes Global Yes
innodb_read_ahead_threshold Yes Yes Yes Global Yes
innodb_read_io_threads Yes Yes Yes Global No
innodb_read_only Yes Yes Yes Global No
innodb_replication_delay Yes Yes Yes Global Yes
innodb_rollback_on_timeout Yes Yes Yes Global No
innodb_rollback_segments Yes Yes Yes Global Yes
innodb_saved_page_number_debug Yes Yes Yes Global Yes
innodb_sort_buffer_size Yes Yes Yes Global No
innodb_spin_wait_delay Yes Yes Yes Global Yes
innodb_stats_auto_recalc Yes Yes Yes Global Yes
innodb_stats_include_delete_marked Yes Yes Yes Global Yes
innodb_stats_method Yes Yes Yes Global Yes
innodb_stats_on_metadata Yes Yes Yes Global Yes
innodb_stats_persistent Yes Yes Yes Global Yes
innodb_stats_persistent_sample_pages Yes Yes Yes Global Yes
innodb_stats_sample_pages Yes Yes Yes Global Yes
innodb_stats_transient_sample_pages Yes Yes Yes Global Yes
innodb_status_output Yes Yes Yes Global Yes
innodb_status_output_locks Yes Yes Yes Global Yes
innodb_strict_mode Yes Yes Yes Both Yes
innodb_support_xa Yes Yes Yes Both Yes
innodb_sync_array_size Yes Yes Yes Global No
innodb_sync_spin_loops Yes Yes Yes Global Yes
innodb_table_locks Yes Yes Yes Both Yes
innodb_thread_concurrency Yes Yes Yes Global Yes
innodb_thread_sleep_delay Yes Yes Yes Global Yes
innodb_tmpdir Yes Yes Yes Both Yes
innodb_trx_purge_view_update_only_debug Yes Yes Yes Global Yes
innodb_trx_rseg_n_slots_debug Yes Yes Yes Global Yes
innodb_undo_directory Yes Yes Yes Global No
innodb_undo_logs Yes Yes Yes Global Yes
innodb_undo_tablespaces Yes Yes Yes Global No
innodb_use_native_aio Yes Yes Yes Global No
innodb_use_sys_malloc Yes Yes Yes Global No
innodb_version     Yes Global No
innodb_write_io_threads Yes Yes Yes Global No
insert_id     Yes Session Yes
interactive_timeout Yes Yes Yes Both Yes
join_buffer_size Yes Yes Yes Both Yes
keep_files_on_create Yes Yes Yes Both Yes
key_buffer_size Yes Yes Yes Global Yes
key_cache_age_threshold Yes Yes Yes Global Yes
key_cache_block_size Yes Yes Yes Global Yes
key_cache_division_limit Yes Yes Yes Global Yes
language Yes Yes Yes Global No
large_files_support     Yes Global No
large_page_size     Yes Global No
large-pages Yes Yes     No
Variablelarge_pages     Yes Global No
last_insert_id     Yes Session Yes
lc-messages Yes Yes     Yes
Variablelc_messages     Yes Both Yes
lc-messages-dir Yes Yes     No
Variablelc_messages_dir     Yes Global No
lc_time_names     Yes Both Yes
license     Yes Global No
local_infile     Yes Global Yes
lock_wait_timeout Yes Yes Yes Both Yes
locked_in_memory     Yes Global No
log Yes Yes Yes Global Yes
log-bin Yes Yes Yes Global No
log_bin     Yes Global No
log_bin_basename     Yes Global No
log_bin_index     Yes Global No
log-bin-trust-function-creators Yes Yes     Yes
Variablelog_bin_trust_function_creators     Yes Global Yes
log-bin-use-v1-row-events Yes Yes     No
Variablelog_bin_use_v1_row_events     Yes Global No
log_bin_use_v1_row_events Yes Yes Yes Global No
log-error Yes Yes     No
Variablelog_error     Yes Global No
log-output Yes Yes     Yes
Variablelog_output     Yes Global Yes
log-queries-not-using-indexes Yes Yes     Yes
Variablelog_queries_not_using_indexes     Yes Global Yes
log-slave-updates Yes Yes     No
Variablelog_slave_updates     Yes Global No
log_slave_updates Yes Yes Yes Global No
log_slow_admin_statements     Yes Global Yes
log-slow-queries Yes Yes     Yes
Variablelog_slow_queries     Yes Global Yes
log_slow_slave_statements     Yes Global Yes
log_throttle_queries_not_using_indexes     Yes Global Yes
log-warnings Yes Yes     Yes
Variablelog_warnings     Yes Varies Yes
long_query_time Yes Yes Yes Both Yes
low-priority-updates Yes Yes     Yes
Variablelow_priority_updates     Yes Both Yes
lower_case_file_system     Yes Global No
lower_case_table_names Yes Yes Yes Global No
master_info_repository Yes Yes Yes Global Yes
master_verify_checksum     Yes Global Yes
max_allowed_packet Yes Yes Yes Both Yes
max_binlog_cache_size Yes Yes Yes Global Yes
max_binlog_size Yes Yes Yes Global Yes
max_binlog_stmt_cache_size Yes Yes Yes Global Yes
max_connect_errors Yes Yes Yes Global Yes
max_connections Yes Yes Yes Global Yes
max_delayed_threads Yes Yes Yes Both Yes
max_digest_length Yes Yes Yes Global No
max_error_count Yes Yes Yes Both Yes
max_heap_table_size Yes Yes Yes Both Yes
max_insert_delayed_threads     Yes Both Yes
max_join_size Yes Yes Yes Both Yes
max_length_for_sort_data Yes Yes Yes Both Yes
max_prepared_stmt_count Yes Yes Yes Global Yes
max_relay_log_size Yes Yes Yes Global Yes
max_seeks_for_key Yes Yes Yes Both Yes
max_sort_length Yes Yes Yes Both Yes
max_sp_recursion_depth Yes Yes Yes Both Yes
max_tmp_tables     Yes Both Yes
max_user_connections Yes Yes Yes Both Yes
max_write_lock_count Yes Yes Yes Global Yes
metadata_locks_cache_size     Yes Global No
metadata_locks_hash_instances     Yes Global No
min-examined-row-limit Yes Yes Yes Both Yes
multi_range_count Yes Yes Yes Both Yes
myisam_data_pointer_size Yes Yes Yes Global Yes
myisam_max_sort_file_size Yes Yes Yes Global Yes
myisam_mmap_size Yes Yes Yes Global No
myisam_recover_options     Yes Global No
myisam_repair_threads Yes Yes Yes Both Yes
myisam_sort_buffer_size Yes Yes Yes Both Yes
myisam_stats_method Yes Yes Yes Both Yes
myisam_use_mmap Yes Yes Yes Global Yes
mysql_firewall_max_query_size Yes Yes Yes Global No
mysql_firewall_mode Yes Yes Yes Global Yes
mysql_firewall_trace Yes Yes Yes Global Yes
named_pipe     Yes Global No
ndb_autoincrement_prefetch_sz Yes Yes Yes Both Yes
ndb-batch-size Yes Yes Yes Global No
ndb-blob-read-batch-bytes Yes Yes Yes Both Yes
ndb-blob-write-batch-bytes Yes Yes Yes Both Yes
ndb_cache_check_time Yes Yes Yes Global Yes
ndb_clear_apply_status Yes   Yes Global Yes
ndb-cluster-connection-pool Yes Yes Yes Global No
Ndb_conflict_last_conflict_epoch     Yes Global No
ndb-deferred-constraints Yes Yes     Yes
Variablendb_deferred_constraints     Yes Both Yes
ndb_deferred_constraints Yes Yes Yes Both Yes
ndb-distribution Yes Yes     Yes
Variablendb_distribution     Yes Global Yes
ndb_distribution Yes Yes Yes Global Yes
ndb_eventbuffer_free_percent Yes Yes Yes Global Yes
ndb_eventbuffer_max_alloc Yes Yes Yes Global Yes
ndb_extra_logging Yes Yes Yes Global Yes
ndb_force_send Yes Yes Yes Both Yes
ndb_index_stat_cache_entries Yes Yes Yes Both Yes
ndb_index_stat_enable Yes Yes Yes Both Yes
ndb_index_stat_option Yes Yes Yes Both Yes
ndb_index_stat_update_freq Yes Yes Yes Both Yes
ndb_join_pushdown     Yes Both Yes
ndb-log-apply-status Yes Yes     No
Variablendb_log_apply_status     Yes Global No
ndb_log_apply_status Yes Yes Yes Global No
ndb_log_bin Yes   Yes Both Yes
ndb_log_binlog_index Yes   Yes Global Yes
ndb-log-empty-epochs Yes Yes Yes Global Yes
ndb_log_empty_epochs Yes Yes Yes Global Yes
ndb-log-empty-update Yes Yes Yes Global Yes
ndb_log_empty_update Yes Yes Yes Global Yes
ndb-log-exclusive-reads Yes Yes     Yes
Variablendb_log_exclusive_reads     Yes Both Yes
ndb_log_exclusive_reads Yes Yes Yes Both Yes
ndb-log-orig Yes Yes     No
Variablendb_log_orig     Yes Global No
ndb_log_orig Yes Yes Yes Global No
ndb-log-transaction-id Yes Yes     No
Variablendb_log_transaction_id     Yes Global No
ndb_log_transaction_id     Yes Global No
ndb-log-update-as-write Yes Yes Yes Global Yes
ndb_log_updated_only Yes Yes Yes Global Yes
ndb_optimization_delay     Yes Global Yes
ndb_optimized_node_selection Yes Yes Yes Global No
ndb_recv_thread_cpu_mask     Yes Global Yes
ndb_report_thresh_binlog_epoch_slip Yes Yes Yes Global Yes
ndb_report_thresh_binlog_mem_usage Yes Yes Yes Global Yes
ndb_show_foreign_key_mock_tables Yes Yes Yes Global Yes
ndb_slave_conflict_role Yes Yes Yes Global Yes
Ndb_slave_max_replicated_epoch     Yes Global No
ndb_table_no_logging     Yes Session Yes
ndb_table_temporary     Yes Session Yes
ndb_use_copying_alter_table     Yes Both No
ndb_use_exact_count     Yes Both Yes
ndb_use_transactions Yes Yes Yes Both Yes
ndb_version     Yes Global No
ndb_version_string     Yes Global No
ndb-wait-connected Yes Yes Yes Global No
ndb-wait-setup Yes Yes Yes Global No
ndbinfo_database     Yes Global No
ndbinfo_max_bytes Yes   Yes Both Yes
ndbinfo_max_rows Yes   Yes Both Yes
ndbinfo_offline     Yes Global Yes
ndbinfo_show_hidden Yes   Yes Both Yes
ndbinfo_table_prefix Yes   Yes Both Yes
ndbinfo_version     Yes Global No
net_buffer_length Yes Yes Yes Both Yes
net_read_timeout Yes Yes Yes Both Yes
net_retry_count Yes Yes Yes Both Yes
net_write_timeout Yes Yes Yes Both Yes
new Yes Yes Yes Both Yes
old Yes Yes Yes Global No
old-alter-table Yes Yes     Yes
Variableold_alter_table     Yes Both Yes
old_passwords     Yes Both Yes
open-files-limit Yes Yes     No
Variableopen_files_limit     Yes Global No
optimizer_join_cache_level Yes Yes Yes Both Yes
optimizer_prune_level Yes Yes Yes Both Yes
optimizer_search_depth Yes Yes Yes Both Yes
optimizer_switch Yes Yes Yes Both Yes
optimizer_trace     Yes Both Yes
optimizer_trace_features     Yes Both Yes
optimizer_trace_limit     Yes Both Yes
optimizer_trace_max_mem_size     Yes Both Yes
optimizer_trace_offset     Yes Both Yes
performance_schema Yes Yes Yes Global No
performance_schema_accounts_size Yes Yes Yes Global No
performance_schema_digests_size Yes Yes Yes Global No
performance_schema_events_stages_history_long_size Yes Yes Yes Global No
performance_schema_events_stages_history_size Yes Yes Yes Global No
performance_schema_events_statements_history_long_size Yes Yes Yes Global No
performance_schema_events_statements_history_size Yes Yes Yes Global No
performance_schema_events_waits_history_long_size Yes Yes Yes Global No
performance_schema_events_waits_history_size Yes Yes Yes Global No
performance_schema_hosts_size Yes Yes Yes Global No
performance_schema_max_cond_classes Yes Yes Yes Global No
performance_schema_max_cond_instances Yes Yes Yes Global No
performance_schema_max_digest_length Yes Yes Yes Global No
performance_schema_max_file_classes Yes Yes Yes Global No
performance_schema_max_file_handles Yes Yes Yes Global No
performance_schema_max_file_instances Yes Yes Yes Global No
performance_schema_max_mutex_classes Yes Yes Yes Global No
performance_schema_max_mutex_instances Yes Yes Yes Global No
performance_schema_max_rwlock_classes Yes Yes Yes Global No
performance_schema_max_rwlock_instances Yes Yes Yes Global No
performance_schema_max_socket_classes Yes Yes Yes Global No
performance_schema_max_socket_instances Yes Yes Yes Global No
performance_schema_max_stage_classes Yes Yes Yes Global No
performance_schema_max_statement_classes Yes Yes Yes Global No
performance_schema_max_table_handles Yes Yes Yes Global No
performance_schema_max_table_instances Yes Yes Yes Global No
performance_schema_max_thread_classes Yes Yes Yes Global No
performance_schema_max_thread_instances Yes Yes Yes Global No
performance_schema_session_connect_attrs_size Yes Yes Yes Global No
performance_schema_setup_actors_size Yes Yes Yes Global No
performance_schema_setup_objects_size Yes Yes Yes Global No
performance_schema_users_size Yes Yes Yes Global No
pid-file Yes Yes     No
Variablepid_file     Yes Global No
plugin_dir Yes Yes Yes Global No
port Yes Yes Yes Global No
preload_buffer_size Yes Yes Yes Both Yes
profiling     Yes Both Yes
profiling_history_size Yes Yes Yes Both Yes
protocol_version     Yes Global No
proxy_user     Yes Session No
pseudo_slave_mode     Yes Session Yes
pseudo_thread_id     Yes Session Yes
query_alloc_block_size Yes Yes Yes Both Yes
query_cache_limit Yes Yes Yes Global Yes
query_cache_min_res_unit Yes Yes Yes Global Yes
query_cache_size Yes Yes Yes Global Yes
query_cache_type Yes Yes Yes Both Yes
query_cache_wlock_invalidate Yes Yes Yes Both Yes
query_prealloc_size Yes Yes Yes Both Yes
rand_seed1     Yes Session Yes
rand_seed2     Yes Session Yes
range_alloc_block_size Yes Yes Yes Both Yes
read_buffer_size Yes Yes Yes Both Yes
read_only Yes Yes Yes Global Yes
read_rnd_buffer_size Yes Yes Yes Both Yes
relay-log Yes Yes     No
Variablerelay_log     Yes Global No
relay_log_basename     Yes Global No
relay-log-index Yes Yes     No
Variablerelay_log_index     Yes Global No
relay_log_index Yes Yes Yes Global No
relay_log_info_file Yes Yes Yes Global No
relay_log_info_repository     Yes Global Yes
relay_log_purge Yes Yes Yes Global Yes
relay_log_recovery Yes Yes Yes Global Varies
relay_log_space_limit Yes Yes Yes Global No
report-host Yes Yes     No
Variablereport_host     Yes Global No
report-password Yes Yes     No
Variablereport_password     Yes Global No
report-port Yes Yes     No
Variablereport_port     Yes Global No
report-user Yes Yes     No
Variablereport_user     Yes Global No
rpl_semi_sync_master_enabled     Yes Global Yes
rpl_semi_sync_master_timeout     Yes Global Yes
rpl_semi_sync_master_trace_level     Yes Global Yes
rpl_semi_sync_master_wait_no_slave     Yes Global Yes
rpl_semi_sync_slave_enabled     Yes Global Yes
rpl_semi_sync_slave_trace_level     Yes Global Yes
rpl_stop_slave_timeout Yes Yes Yes Global Yes
secure-auth Yes Yes     Yes
Variablesecure_auth     Yes Global Yes
secure-file-priv Yes Yes     No
Variablesecure_file_priv     Yes Global No
server-id Yes Yes     Yes
Variableserver_id     Yes Global Yes
server-id-bits Yes Yes     No
Variableserver_id_bits     Yes Global No
server_id_bits Yes Yes Yes Global No
server_uuid     Yes Global No
sha256_password_private_key_path     Yes Global No
sha256_password_public_key_path     Yes Global No
shared_memory Yes Yes Yes Global No
shared_memory_base_name Yes Yes Yes Global No
show_old_temporals Yes Yes Yes Both Yes
simplified_binlog_gtid_recovery Yes Yes Yes Global No
skip_external_locking Yes Yes Yes Global No
skip-name-resolve Yes Yes     No
Variableskip_name_resolve     Yes Global No
skip-networking Yes Yes     No
Variableskip_networking     Yes Global No
skip-show-database Yes Yes     No
Variableskip_show_database     Yes Global No
slave_allow_batching Yes Yes Yes Global Yes
slave_checkpoint_group Yes Yes Yes Global Yes
slave_checkpoint_period Yes Yes Yes Global Yes
slave_compressed_protocol Yes Yes Yes Global Yes
slave_exec_mode Yes Yes Yes Global Yes
slave-load-tmpdir Yes Yes     No
Variableslave_load_tmpdir     Yes Global No
slave_max_allowed_packet     Yes Global Yes
slave-net-timeout Yes Yes     Yes
Variableslave_net_timeout     Yes Global Yes
slave_parallel_workers Yes   Yes Global Yes
slave_pending_jobs_size_max     Yes Global Yes
slave_rows_search_algorithms     Yes Global Yes
slave-skip-errors Yes Yes     No
Variableslave_skip_errors     Yes Global No
slave_sql_verify_checksum     Yes Global Yes
slave_transaction_retries Yes Yes Yes Global Yes
slave_type_conversions Yes Yes Yes Global No
slow_launch_time Yes Yes Yes Global Yes
slow-query-log Yes Yes     Yes
Variableslow_query_log     Yes Global Yes
slow_query_log_file Yes Yes Yes Global Yes
socket Yes Yes Yes Global No
sort_buffer_size Yes Yes Yes Both Yes
sql_auto_is_null     Yes Both Yes
sql_big_selects     Yes Both Yes
sql_big_tables     Yes Both Yes
sql_buffer_result     Yes Both Yes
sql_log_bin     Yes Session Yes
sql_log_off     Yes Both Yes
sql_low_priority_updates     Yes Both Yes
sql_max_join_size     Yes Both Yes
sql-mode Yes Yes     Yes
Variablesql_mode     Yes Both Yes
sql_notes     Yes Both Yes
sql_quote_show_create     Yes Both Yes
sql_safe_updates     Yes Both Yes
sql_select_limit     Yes Both Yes
sql_slave_skip_counter     Yes Global Yes
sql_warnings     Yes Both Yes
ssl-ca Yes Yes     No
Variablessl_ca     Yes Global No
ssl-capath Yes Yes     No
Variablessl_capath     Yes Global No
ssl-cert Yes Yes     No
Variablessl_cert     Yes Global No
ssl-cipher Yes Yes     No
Variablessl_cipher     Yes Global No
ssl-crl Yes Yes     No
Variablessl_crl     Yes Global No
ssl-crlpath Yes Yes     No
Variablessl_crlpath     Yes Global No
ssl-key Yes Yes     No
Variablessl_key     Yes Global No
storage_engine     Yes Both Yes
stored_program_cache Yes Yes Yes Global Yes
sync_binlog Yes Yes Yes Global Yes
sync_frm Yes Yes Yes Global Yes
sync_master_info Yes Yes Yes Global Yes
sync_relay_log Yes Yes Yes Global Yes
sync_relay_log_info Yes Yes Yes Global Yes
system_time_zone     Yes Global No
table_definition_cache     Yes Global Yes
table_open_cache     Yes Global Yes
table_open_cache_instances     Yes Global No
thread_cache_size Yes Yes Yes Global Yes
thread_concurrency Yes Yes Yes Global No
thread_handling Yes Yes Yes Global No
thread_pool_algorithm Yes Yes Yes Global No
thread_pool_high_priority_connection Yes Yes Yes Both Yes
thread_pool_max_unused_threads Yes Yes Yes Global Yes
thread_pool_prio_kickup_timer Yes Yes Yes Both Yes
thread_pool_size Yes Yes Yes Global No
thread_pool_stall_limit Yes Yes Yes Global Yes
thread_stack Yes Yes Yes Global No
time_format     Yes Global No
time_zone     Yes Both Yes
timed_mutexes Yes Yes Yes Global Yes
timestamp     Yes Session Yes
tmp_table_size Yes Yes Yes Both Yes
tmpdir Yes Yes Yes Global No
transaction_alloc_block_size Yes Yes Yes Both Yes
transaction_allow_batching     Yes Session Yes
transaction_prealloc_size Yes Yes Yes Both Yes
tx_isolation     Yes Both Yes
tx_read_only     Yes Both Yes
unique_checks     Yes Both Yes
updatable_views_with_limit Yes Yes Yes Both Yes
validate_password_dictionary_file     Yes Global Varies
validate_password_length     Yes Global Yes
validate_password_mixed_case_count     Yes Global Yes
validate_password_number_count     Yes Global Yes
validate_password_policy     Yes Global Yes
validate_password_special_char_count     Yes Global Yes
validate_user_plugins     Yes Global No
version     Yes Global No
version_comment     Yes Global No
version_compile_machine     Yes Global No
version_compile_os     Yes Global No
wait_timeout Yes Yes Yes Both Yes
warning_count     Yes Session No

[a] This option is dynamic, but only the server should set this information. You should not set the value of this variable manually.

[b] This option is dynamic, but only the server should set this information. You should not set the value of this variable manually.

                              





 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



  1.        
  2.      
  3.     
  1.             
  2.       
  3.    


            
  1.    
  2. >        
  3.               
  4.   
  5.   
  6. >      
  7.   
  8.               
  9.   
  10.         
  11.   
  12.        
  13.   
  14.   
  15. >     
  16.         
  17.   
  18. >      
  19.   
  20.               
  21.   
  22.          
  23.   
  24.        
  25.   
  26. >        
  27.   
  28.               
  29.   
  30.                          
  31.                         
  32.                    
  33.   
  34.          
  35.   
  36.                
  37.   
  38.    
  39.    
  40.       
  41.   
  42.   
  43.   
  44.   
  45.   
  46.    
  47.                   
  48.    
  49.   
  50.   
  51.   
  52.   
  53.   
  54.   
  55.   
  56.   
  57.  




 

  1.  


           



              

          &

                       

          时间: 2024-10-28 07:20:58

          MySQL 5.6所有系统变量(系统参数)的相关文章

          MySQL 系统变量(system variables)

              MySQL系统变量(system variables)实际上是一些系统参数,用于初始化或设定数据库对系统资源的占用,文件存放位置等等.这些个系统变量可以分为全局以及会话级别层面来修改,有些也可以进行动态修改.本文主要介绍了系统变量的一些概念以及如何设置查看这些系统变量.   1.什么是系统变量   系统变量实际上用于控制数据库的一些行为和方式的参数.比如我们启动数据库的时候设定多大的内存,使用什么样的隔离级别,日志文件的大小,存放位置等等一系列的东东.当然我们数据库系统启动后,有些系统变

          MySQL运维实战(一)之 系统变量潜规则

          Agenda 踩坑经历 测试用例 结论 实战用途 一.踩坑经历 设置了slow log 的时间,但是抓不到正确的sql 设置了read_only ,为啥还有写入进来 设置了sql_safe_update , 为啥还能全表删除 测试方法的不对,导致设置了read_only后,有的时候可以insert,有的时候不可以insert 太多这样的问题, 所以打算一窥究竟 二.测试用例 测试设置参数后,是否会生效 2.1 官方文档说明 https://dev.mysql.com/doc/refman/5.7

          linux CentOS 系统下如何将php和mysql命令加入到环境变量中_Linux

          linux CentOS 系统下如何将php和mysql命令加入到环境变量中 在Linux CentOS系统上安装完php和MySQL后,为了使用方便,需要将php和mysql命令加到系统命令中,如果在没有添加到环境变量之前,执行"php -v"命令查看当前php版本信息时时,则会提示命令不存在的错误,下面我们详细介绍一下在linux下将php和mysql加入到环境变量中的方法(假设php.mysql和apache分别安装在/phpstudy/server/php/./phpstudy

          mysql 字符集的系统变量说明_Mysql

          1.character_set_server和collation_server 这两个变量是服务器的字符集.在系统启动的时候可以通过--character-set-server和--collation-server来设置它们.如果没有的话系统会把这两各变量设置成默认值latin1和latin1_swedish_ci.默认值是编译在程序中的,只能通过重新编译来改变. 这两个变量只用来为create database命令提供默认值. 2.character_set_database和collatio

          MySql服务器系统变量和状态变量介绍_Mysql

          服务器系统变量 服务器将维护许多表示其配置的系统变量.所有变量均有默认值.可以在命令行中或选项文件设置选项在服务器启动时对它们进行设置.大多数可以在运行时使用SET语句来设置. mysqld服务器维护两种变量.全局变量影响服务器的全局操作.会话变量影响具体客户端连接相关操作. 服务器启动时,将所有全局变量初始化为默认值.可以在选项文件或命令行中指定的选项来更改这些默认值.服务器启动后,通过连接服务器并执行SET GLOBAL var_name语句可以更改动态全局变量.要想更改全局变量,必须具有S

          Thinkphp入门 四 —布局、缓存、系统变量 (48)

          原文:Thinkphp入门 四 -布局.缓存.系统变量 (48) [控制器操作方法参数设置] http://网址/index.php/控制器/操作方法   [页面跳转] [变量调节器] Smarty变量调节器 TP变量调节器:普通的php函数 (count  strlen   str_replace) 定义:前者的输出,是后者的输入 [子模板包含] 当前模块彼此包含        <include  file="模板名称"  /> [使用布局layout] 1. 开启布局,

          Delphi中用GetEnvironmentVariable获取常用系统变量

          //譬如 WINDIR 是表示系统目录的系统变量, 可以这样获取: var s: string; begin s := GetEnvironmentVariable('WINDIR'); ShowMessage(s); {C:\WINDOWS} end; (*-------------------------------------------------------------------------------- WINDIR {系统目录 - C:\WINDOWS} SYSTEMROOT {

          解决MySQL服务无法启动 系统发生1058错误

          现象:mysql 服务无法启动,系统发生1058错误 我的mysql原安装好的,后来把服务禁掉,然后用mysqld-nt standalone启动,现在我想把服务重新启动,却无法启动. 解决方法: ◆1.运行 D:\mysql\bin>mysqld-nt -remove Service successfully removed. D:\mysql\bin>mysqld-nt --install Service successfully installed. D:\mysql\bin>ne

          向Eclipse中输入系统变量和运行参数的方法

          往Eclipse中输入系统变量,run -> run--->arguments--> vm arguments. Eg: -Dlog.level=DEBUG -Dconfig.file="C:\Documents and Settings\feli\workspace\IECAgent\src\ratingAgent.config" 有一点要注意的就是如果参数中有空格,要用引号括起来.