IT技术博客大学习 共学习 共进步

MySQL 5.1 的参数简表

石展,高度决定视野!―― DBA的视界 2009-10-15 15:23:48 浏览 3,262 次

整理一个MySQL 5.1 的参数简表,共303个,方便平时查询

参数名Linux命令行配置文件mysql命令行参数级别可动态修改
auto_increment_incrementYesYesYesBothYes
auto_increment_offsetYesYesYesBothYes
autocommit

YesSessionYes
automatic_sp_privileges

YesGlobalYes
back_logYesYesYesGlobalNo
basedirYesYesYesGlobalNo
big-tablesYesYes

Yes
- Variable: big_tables

YesSessionYes
binlog_cache_sizeYesYesYesGlobalYes
binlog-formatYesYes

Yes
- Variable: binlog_format

YesBothYes
bulk_insert_buffer_sizeYesYesYesBothYes
character_set_client

YesBothYes
character_set_connection

YesBothYes
character_set_database[a]

YesBothYes
character-set-filesystemYesYes

Yes
- Variable: character_set_filesystem

YesBothYes
character_set_results

YesBothYes
character-set-serverYesYes

Yes
- Variable: character_set_server

YesBothYes
character_set_system

YesGlobalNo
character-sets-dirYesYes

No
- Variable: character_sets_dir

YesGlobalNo
collation_connection

YesBothYes
collation_database[b]

YesBothYes
collation-serverYesYes

Yes
- Variable: collation_server

YesBothYes
completion_typeYesYesYesBothYes
concurrent_insertYesYesYesGlobalYes
connect_timeoutYesYesYesGlobalYes
datadirYesYesYesGlobalNo
date_format

YesBothYes
datetime_formatYesYesYesBothYes
debugYesYesYesBothYes
default_week_formatYesYesYesBothYes
delay-key-writeYesYes

Yes
- Variable: delay_key_write

YesGlobalYes
delayed_insert_limitYesYesYesGlobalYes
delayed_insert_timeoutYesYesYesGlobalYes
delayed_queue_sizeYesYesYesGlobalYes
div_precision_incrementYesYesYesBothYes
engine-condition-pushdownYesYes

Yes
- Variable: engine_condition_pushdown

YesBothYes
error_count

YesSessionNo
event-schedulerYesYes

Yes
- Variable: event_scheduler

YesGlobalYes
expire_logs_daysYesYesYesGlobalYes
flushYesYesYesGlobalYes
flush_timeYesYesYesGlobalYes
foreign_key_checks

YesSessionYes
ft_boolean_syntaxYesYesYesGlobalYes
ft_max_word_lenYesYesYesGlobalNo
ft_min_word_lenYesYesYesGlobalNo
ft_query_expansion_limitYesYesYesGlobalNo
ft_stopword_fileYesYesYesGlobalNo
general-logYesYes

Yes
- Variable: general_log

YesGlobalYes
general_log_fileYesYesYesGlobalYes
group_concat_max_lenYesYesYesBothYes
have_archive

YesGlobalNo
have_blackhole_engine

YesGlobalNo
have_community_features

YesGlobalNo
have_compress

YesGlobalNo
have_crypt

YesGlobalNo
have_csv

YesGlobalNo
have_dynamic_loading

YesGlobalNo
have_example_engine

YesGlobalNo
have_federated_engine

YesGlobalNo
have_geometry

YesGlobalNo
have_innodb

YesGlobalNo
have_isam

YesGlobalNo
have_merge_engine

YesGlobalNo
have_ndbcluster

YesGlobalNo
have_openssl

YesGlobalNo
have_partitioning

YesGlobalNo
have_query_cache

YesGlobalNo
have_raid

YesGlobalNo
have_row_based_replication

YesGlobalNo
have_rtree_keys

YesGlobalNo
have_ssl

YesGlobalNo
have_symlink

YesGlobalNo
hostname

YesGlobalNo
identity

YesSessionYes
ignore_builtin_innodbYesYesYesGlobalNo
init_connectYesYesYesGlobalYes
init-fileYesYes

No
- Variable: init_file

YesGlobalNo
init_slaveYesYesYesGlobalYes
innodb_adaptive_hash_indexYesYesYesGlobalNo
innodb_additional_mem_pool_sizeYesYesYesGlobalNo
innodb_autoextend_incrementYesYesYesGlobalYes
innodb_autoinc_lock_modeYesYesYesGlobalNo
innodb_buffer_pool_awe_mem_mbYesYesYesGlobalNo
innodb_buffer_pool_sizeYesYesYesGlobalNo
innodb_checksumsYesYesYesGlobalNo
innodb_commit_concurrencyYesYesYesGlobalYes
innodb_concurrency_ticketsYesYesYesGlobalYes
innodb_data_file_pathYesYesYesGlobalNo
innodb_data_home_dirYesYesYesGlobalNo
innodb_doublewriteYesYesYesGlobalNo
innodb_fast_shutdownYesYesYesGlobalYes
innodb_file_io_threadsYesYesYesGlobalNo
innodb_file_per_tableYesYesYesGlobalNo
innodb_flush_log_at_trx_commitYesYesYesGlobalYes
innodb_flush_methodYesYesYesGlobalNo
innodb_force_recoveryYesYesYesGlobalNo
innodb_lock_wait_timeoutYesYesYesGlobalNo
innodb_locks_unsafe_for_binlogYesYesYesGlobalNo
innodb_log_arch_dirYesYesYesGlobalNo
innodb_log_archiveYesYesYesGlobalNo
innodb_log_buffer_sizeYesYesYesGlobalNo
innodb_log_file_sizeYesYesYesGlobalNo
innodb_log_files_in_groupYesYesYesGlobalNo
innodb_log_group_home_dirYesYesYesGlobalNo
innodb_max_dirty_pages_pctYesYesYesGlobalYes
innodb_max_purge_lagYesYesYesGlobalYes
innodb_mirrored_log_groupsYesYesYesGlobalNo
innodb_open_filesYesYesYesGlobalNo
innodb_rollback_on_timeoutYesYesYesGlobalNo
innodb_stats_on_metadataYesYesYesGlobalYes
innodb_support_xaYesYesYesBothYes
innodb_sync_spin_loopsYesYesYesGlobalYes
innodb_table_locksYesYesYesBothYes
innodb_thread_concurrencyYesYesYesGlobalYes
innodb_thread_sleep_delayYesYesYesGlobalYes
innodb_use_legacy_cardinality_algorithmYesYesYesGlobalYes
insert_id

YesSessionYes
interactive_timeoutYesYesYesBothYes
join_buffer_sizeYesYesYesBothYes
keep_files_on_createYesYesYesBothYes
key_buffer_sizeYesYesYesGlobalYes
key_cache_age_thresholdYesYesYesGlobalYes
key_cache_block_sizeYesYesYesGlobalYes
key_cache_division_limitYesYesYesGlobalYes
languageYesYesYesGlobalNo
large_page_size

YesGlobalNo
large-pagesYesYes

No
- Variable: large_pages

YesGlobalNo
last_insert_id

YesSessionYes
lc_time_names

YesBothYes
license

YesGlobalNo
local_infile

YesGlobalYes
locked_in_memory

YesGlobalNo
logYesYesYesGlobalYes
log_bin

YesGlobalNo
log-binYesYesYesGlobalNo
log-bin-trust-function-creatorsYesYes

Yes
- Variable: log_bin_trust_function_creators

YesGlobalYes
log-bin-trust-routine-creatorsYesYes

Yes
- Variable: log_bin_trust_routine_creators

YesGlobalYes
log-errorYesYes

No
- Variable: log_error

YesGlobalNo
log-outputYesYes

Yes
- Variable: log_output

YesGlobalYes
log-queries-not-using-indexesYesYes

Yes
- Variable: log_queries_not_using_indexes

YesGlobalYes
log-slave-updatesYesYes

No
- Variable: log_slave_updates

YesGlobalNo
log-slow-queriesYesYes

Yes
- Variable: log_slow_queries

YesGlobalYes
log-warningsYesYes

Yes
- Variable: log_warnings

YesBothYes
long_query_timeYesYesYesBothYes
low-priority-updatesYesYes

Yes
- Variable: low_priority_updates

YesBothYes
lower_case_file_systemYesYesYesGlobalNo
lower_case_table_namesYesYesYesGlobalNo
master-bindYesYesYes
No
max_allowed_packetYesYesYesBothYes
max_binlog_cache_sizeYesYesYesGlobalYes
max_binlog_sizeYesYesYesGlobalYes
max_connect_errorsYesYesYesGlobalYes
max_connectionsYesYesYesGlobalYes
max_delayed_threadsYesYesYesBothYes
max_error_countYesYesYesBothYes
max_heap_table_sizeYesYesYesBothYes
max_insert_delayed_threads

YesBothYes
max_join_sizeYesYesYesBothYes
max_length_for_sort_dataYesYesYesBothYes
max_prepared_stmt_countYesYesYesGlobalYes
max_relay_log_sizeYesYesYesGlobalYes
max_seeks_for_keyYesYesYesBothYes
max_sort_lengthYesYesYesBothYes
max_sp_recursion_depthYesYesYesBothYes
max_tmp_tablesYesYesYesBothYes
max_user_connectionsYesYesYesBothYes
max_write_lock_countYesYesYesGlobalYes
memlockYesYesYesGlobalNo
min-examined-row-limitYesYesYesBothYes
multi_range_countYesYesYesBothYes
myisam_data_pointer_sizeYesYesYesGlobalYes
myisam_max_sort_file_sizeYesYesYesGlobalYes
myisam_recover_options

YesGlobalNo
myisam_repair_threadsYesYesYesBothYes
myisam_sort_buffer_sizeYesYesYesBothYes
myisam_stats_methodYesYesYesBothYes
myisam_use_mmapYesYesYesGlobalYes
named_pipe

YesGlobalNo
ndb_autoincrement_prefetch_szYesYesYesBothYes
ndb-batch-sizeYesYesYesGlobalNo
ndb_cache_check_timeYesYesYesGlobalYes
ndb_extra_loggingYesYesYesGlobalYes
ndb_force_sendYesYesYesBothYes
ndb_log_empty_epochsYesYesYesGlobalYes
ndb_log_orig

YesGlobalNo
ndb-log-update-as-writeYesYesYesGlobalYes
ndb_log_updated_onlyYesYesYesGlobalYes
ndb_optimization_delay

YesGlobalYes
ndb_table_no_logging

YesSessionYes
ndb_table_temporary

YesSessionYes
ndb_use_copying_alter_table

YesBothNo
ndb_use_exact_count

YesBothYes
ndb_wait_connectedYesYesYes
No
net_buffer_lengthYesYesYesBothYes
net_read_timeoutYesYesYesBothYes
net_retry_countYesYesYesBothYes
net_write_timeoutYesYesYesBothYes
newYesYesYesBothYes
oldYesYesYesGlobalNo
old-passwordsYesYes

Yes
- Variable: old_passwords

YesBothYes
open-files-limitYesYes

No
- Variable: open_files_limit

YesGlobalNo
optimizer_prune_levelYesYesYesBothYes
optimizer_search_depthYesYesYesBothYes
optimizer_switchYesYesYesBothYes
pid-fileYesYes

No
- Variable: pid_file

YesGlobalNo
plugin_dirYesYesYesGlobalNo
portYesYesYesGlobalNo
preload_buffer_sizeYesYesYesBothYes
prepared_stmt_count

YesGlobalNo
profiling

YesSessionYes
profiling_history_size

YesBothYes
protocol_version

YesGlobalNo
pseudo_thread_id

YesBothYes
query_alloc_block_sizeYesYesYesBothYes
query_cache_limitYesYesYesGlobalYes
query_cache_min_res_unitYesYesYesGlobalYes
query_cache_sizeYesYesYesGlobalYes
query_cache_typeYesYesYesBothYes
query_cache_wlock_invalidateYesYesYesBothYes
query_prealloc_sizeYesYesYesBothYes
rand_seed1

YesSessionYes
rand_seed2

YesSessionYes
range_alloc_block_sizeYesYesYesBothYes
read_buffer_sizeYesYesYesBothYes
read_onlyYesYesYesGlobalYes
read_rnd_buffer_sizeYesYesYesBothYes
relay_log_purgeYesYesYesGlobalYes
relay_log_space_limitYesYesYesGlobalNo
report-hostYesYes

No
- Variable: report_host

YesGlobalNo
report-passwordYesYes

No
- Variable: report_password

YesGlobalNo
report-portYesYes

No
- Variable: report_port

YesGlobalNo
report-userYesYes

No
- Variable: report_user

YesGlobalNo
rpl_recovery_rank

YesGlobalYes
safe-show-databaseYesYesYesGlobalYes
secure-authYesYes

Yes
- Variable: secure_auth

YesGlobalYes
secure-file-privYesYes

No
- Variable: secure_file_priv

YesGlobalNo
server-idYesYes

Yes
- Variable: server_id

YesGlobalYes
shared_memory

YesGlobalNo
shared_memory_base_name

YesGlobalNo
skip-external-lockingYesYes

No
- Variable: skip_external_locking

YesGlobalNo
skip-networkingYesYes

No
- Variable: skip_networking

YesGlobalNo
skip-show-databaseYesYes

No
- Variable: skip_show_database

YesGlobalNo
slave-allow-batchingYesYes

Yes
- Variable: slave_allow_batching

YesGlobalYes
slave_compressed_protocolYesYesYesGlobalYes
slave_exec_mode

YesGlobalYes
slave-load-tmpdirYesYes

No
- Variable: slave_load_tmpdir

YesGlobalNo
slave-net-timeoutYesYes

Yes
- Variable: slave_net_timeout

YesGlobalYes
slave-skip-errorsYesYes

No
- Variable: slave_skip_errors

YesGlobalNo
slave_transaction_retriesYesYesYesGlobalYes
slow_launch_timeYesYesYesGlobalYes
slow-query-logYesYes

Yes
- Variable: slow_query_log

YesGlobalYes
slow_query_log_fileYesYesYesGlobalYes
socketYesYesYesGlobalNo
sort_buffer_sizeYesYesYesBothYes
sql_auto_is_null

YesSessionYes
sql_big_selects

YesSessionYes
sql_big_tables

YesSessionYes
sql_buffer_result

YesSessionYes
sql_log_bin

YesSessionYes
sql_log_off

YesSessionYes
sql_log_update

YesSessionYes
sql_low_priority_updates

YesBothYes
sql_max_join_size

YesBothYes
sql-modeYesYes

Yes
- Variable: sql_mode

YesBothYes
sql_notes

YesSessionYes
sql_quote_show_create

YesSessionYes
sql_safe_updates

YesSessionYes
sql_select_limit

YesBothYes
sql_slave_skip_counter

YesGlobalYes
sql_warnings

YesSessionYes
ssl-caYesYes

No
- Variable: ssl_ca

YesGlobalNo
ssl-capathYesYes

No
- Variable: ssl_capath

YesGlobalNo
ssl-certYesYes

No
- Variable: ssl_cert

YesGlobalNo
ssl-cipherYesYes

No
- Variable: ssl_cipher

YesGlobalNo
ssl-keyYesYes

No
- Variable: ssl_key

YesGlobalNo
storage_engine

YesBothYes
sync-binlogYesYes

Yes
- Variable: sync_binlog

YesGlobalYes
sync-frmYesYes

Yes
- Variable: sync_frm

YesGlobalYes
system_time_zone

YesGlobalNo
table_cacheYesYesYesGlobalYes
table_definition_cacheYesYesYesGlobalYes
table_lock_wait_timeoutYesYesYesGlobalYes
table_open_cacheYesYesYesGlobalYes
table_type

YesBothYes
thread_cache_sizeYesYesYesGlobalYes
thread_concurrencyYesYesYesGlobalNo
thread_handlingYesYesYesGlobalNo
thread_stackYesYesYesGlobalNo
time_formatYesYesYesBothYes
time_zoneYesYesYesBothYes
timed_mutexesYesYesYesGlobalYes
timestamp

YesSessionYes
tmp_table_sizeYesYesYesBothYes
tmpdirYesYesYesGlobalNo
transaction_alloc_block_sizeYesYesYesBothYes
transaction_allow_batching

YesSessionYes
transaction_prealloc_sizeYesYesYesBothYes
tx_isolation

YesBothYes
unique_checks

YesSessionYes
updatable_views_with_limitYesYesYesBothYes
versionYesYesYesGlobalNo
version_comment

YesGlobalNo
version_compile_machine

YesGlobalNo
version_compile_os

YesGlobalNo
wait_timeoutYesYesYesBothYes
warning_count

YesSessionNo

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

:http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#id3410201

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

:http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#id3410443

详细见: http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html

建议继续学习

  1. perl模块Getopt::Std用法及实例-从命令行读取参数模块 (阅读 6,922)
  2. 千万不要把 bool 当成函数参数 (阅读 5,120)
  3. 关于在函数调用时传递string引用的必要性 (阅读 3,881)
  4. 使用参数化查询防止SQL注入漏洞 (阅读 3,621)
  5. MyISAM和InnoDB的一些记录 (阅读 3,540)
  6. 给shell脚本传递变量 (阅读 3,282)
  7. 如何给JavaScript文件传递参数 (阅读 3,061)
  8. java参数传递分析 (阅读 2,701)
  9. 怎样获取PHP函数默认参数常量名 (阅读 2,300)
  10. Puppet 的类参数传递 (阅读 1,342)