The world's most popular open source database
The table below shows all the options and variables available across
all versions of the mysqld server. The columns
are as follows:
Name — the name of the option or variable.
Intr — the version in
which the option or variable was introduced in
mysqld
Depr — the version of
mysqld in which the option or variable was
deprecated.
Cmd — indicates whether the option/variable is valid on the command line.
Cnf — indicates whether the option is valid within a configuration file.
Srvr — indicates whether the variable is a server system variable.
Stat — indicates whether the variable is a status variable.
Scp — indicates the scope of the variable (session-specific, global, or both).
Dyn — indicates whether the variable is dynamically settable while the server is running.
4.1 — indicates if the option/variable is available in the MySQL 4.1 series. If more information is available in the main reference manual, the indication will be a link to the correct part of the manual.
5.0 — indicates if the option/variable is available in the MySQL 5.0 series. If more information is available in the main reference manual, the indication will be a link to the correct part of the manual.
5.1 — indicates if the option/variable is available in the MySQL 5.1 series. If more information is available in the main reference manual, the indication will be a link to the correct part of the manual.
6.0 — indicates if the option/variable is available in the MySQL 6.0 series. If more information is available in the main reference manual, the indication will be a link to the correct part of the manual.
Table 1.1. Option/Variable Reference
| Name | Intr | Depr | Cmd | Cnf | Srvr | Stat | Scope | Dyn | 4.1 | 5.0 | 5.1 | 6.0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Aborted_clients |
Both | No | Yes | Yes | Yes | Yes | ||||||
Aborted_connects |
Global | No | Yes | Yes | Yes | Yes | ||||||
abort-slave-event-count |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
allow-suspicious-udfs |
4.1.10a, 5.0.3 | Yes | Yes | Yes | Yes | Yes | Yes | |||||
ansi |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
autocommit |
Session | Yes | Yes | Yes | Yes | Yes | ||||||
auto-increment-increment |
5.0.2 | Yes | Yes | Both | Yes | Yes | Yes | Yes | ||||
auto-increment-offset |
5.0.2 | Yes | Yes | Both | Yes | Yes | Yes | Yes | ||||
automatic_sp_privileges |
5.0.3 | Global | Yes | Yes | Yes | Yes | ||||||
back_log |
Yes | Yes | Global | No | Yes | Yes | Yes | Yes | ||||
backupdir |
6.0.7 | Yes | Yes | Global | Yes | Yes | ||||||
backup_history_log |
6.0.8 | Yes | Yes | Global | Yes | Yes | ||||||
backup_history_log_file |
6.0.8 | Yes | Yes | Global | Yes | Yes | ||||||
backup_progress_log |
6.0.8 | Yes | Yes | Global | Yes | Yes | ||||||
backup_progress_log_file |
6.0.8 | Yes | Yes | Global | Yes | Yes | ||||||
backup_wait_timeout |
6.0.7 | Session | Yes | Yes | ||||||||
basedir |
Yes | Yes | Global | No | Yes | Yes | Yes | Yes | ||||
bdb_cache_size |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb-data-direct |
5.1.4 | Global | No | |||||||||
bdb-home |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb-lock-detect |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb_log_buffer_size |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb-logdir |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb-log-direct |
5.1.4 | Global | No | |||||||||
bdb_max_lock |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb-no-recover |
Yes | Yes | Yes | Yes | ||||||||
bdb-no-sync |
4.0.18 | Yes | Yes | Yes | ||||||||
bdb-shared-data |
Yes | Yes | Global | No | Yes | Yes | ||||||
bdb-tmpdir |
Yes | Yes | Global | No | Yes | Yes | ||||||
big-tables |
Yes | Yes | Session | Yes | Yes | Yes | Yes | Yes | ||||
bind-address |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
Binlog_cache_disk_use |
4.1.2 | Both | No | Yes | Yes | Yes | Yes | |||||
binlog_cache_size |
Yes | Yes | Global | Yes | Yes | Yes | Yes | Yes | ||||
Binlog_cache_use |
4.1.2 | Both | No | Yes | Yes | Yes | Yes | |||||
binlog-do-db |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
binlog-format |
5.1.5 | Yes | Yes | Both | Yes | Yes | Yes | |||||
binlog-ignore-db |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
binlog-row-event-max-size |
5.1.5 | Yes | Yes | Yes | Yes | |||||||
bootstrap |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
bulk_insert_buffer_size |
Yes | Yes | Both | Yes | Yes | Yes | Yes | Yes | ||||
Bytes_received |
Both | No | Yes | Yes | Yes | Yes | ||||||
Bytes_sent |
Both | No | Yes | Yes | Yes | Yes | ||||||
character_set |
4.1.1 | Yes | No | Yes | ||||||||
character_set_client |
4.1.1 | Both | Yes | Yes | Yes | Yes | Yes | |||||
character-set-client-handshake |
4.1.15 | Yes | Yes | Yes | Yes | Yes | ||||||
character_set_connection |
4.1.1 | Both | Yes | Yes | Yes | Yes | Yes | |||||
character_set_database |
4.1.1 | Both | Yes | Yes | Yes | Yes | Yes | |||||
character-set-filesystem |
5.0.19, 5.1.6 | Yes | Yes | Both | Yes | Yes | Yes | Yes | ||||
character_set_results |
4.1.1 | Both | Yes | Yes | Yes | Yes | Yes | |||||
character-sets-dir |
4.1.2 | Yes | Yes | Global | No | Yes | Yes | Yes | Yes | |||
character-set-server |
4.1.3 | Yes | Yes | Both | Yes | Yes | Yes | Yes | Yes | |||
character_set_system |
4.1.1 | Global | No | Yes | Yes | Yes | Yes | |||||
chroot |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
collation_connection |
4.1.1 | Both | Yes | Yes | Yes | Yes | Yes | |||||
collation_database |
4.1.1 | Both | Yes | Yes | Yes | Yes | Yes | |||||
collation-server |
4.1.1 | Yes | Yes | Both | Yes | Yes | Yes | Yes | Yes | |||
Com_admin_commands |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_alter_db |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_alter_event |
Both | No | Yes | Yes | Yes | |||||||
Com_alter_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_analyze |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_backup |
5.2.5 | Both | No | Yes | ||||||||
Com_backup_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_begin |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_call_procedure |
5.0.44, 5.1.19 | Both | No | Yes | Yes | Yes | ||||||
Com_change_db |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_change_master |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_check |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_checksum |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_commit |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_create_db |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_create_event |
Both | No | Yes | Yes | Yes | |||||||
Com_create_function |
Both | No | Yes | Yes | Yes | |||||||
Com_create_index |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_create_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_create_user |
5.0.30 | Both | No | Yes | Yes | Yes | ||||||
Com_dealloc_sql |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_delete |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_delete_multi |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_do |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_drop_db |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_drop_event |
Both | No | Yes | Yes | Yes | |||||||
Com_drop_function |
Both | No | Yes | Yes | Yes | |||||||
Com_drop_index |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_drop_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_drop_user |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_execute_sql |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_flush |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_grant |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_ha_close |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_ha_open |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_ha_read |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_help |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_insert |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_insert_select |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_kill |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_load |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_load_master_data |
4.1.22 | Both | No | Yes | ||||||||
Com_load_master_table |
4.1.22 | Both | No | Yes | ||||||||
Com_lock_tables |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_optimize |
Both | No | Yes | Yes | Yes | Yes | ||||||
completion_type |
5.0.3 | Yes | Yes | Both | Yes | Yes | Yes | Yes | ||||
Com_preload_keys |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_prepare_sql |
Both | No | Yes | Yes | Yes | Yes | ||||||
Compression |
5.0.16 | Both | No | Yes | Yes | Yes | ||||||
Com_purge |
Both | No | Yes | Yes | Yes | |||||||
Com_purge_before_date |
Both | No | Yes | Yes | Yes | |||||||
Com_rename_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_repair |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_replace |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_replace_select |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_reset |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_restore |
5.2.5 | Both | No | Yes | ||||||||
Com_restore_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_revoke |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_revoke_all |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_rollback |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_savepoint |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_select |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_set_option |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_binlog_events |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_binlogs |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_charsets |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_collations |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_column_types |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_create_db |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_create_event |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_create_table |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_databases |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_engine_logs |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_engine_mutex |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_engine_status |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_errors |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_events |
Both | No | Yes | Yes | Yes | |||||||
Com_show_fields |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_grants |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_innodb_status |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_keys |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_logs |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_master_status |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_ndb_status |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_new_master |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_open_tables |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_plugins |
Both | No | Yes | Yes | Yes | |||||||
Com_show_privileges |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_processlist |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_profile |
5.1.24, 6.0.5 | Both | No | Yes | Yes | |||||||
Com_show_profiles |
5.1.24, 6.0.5 | Both | No | Yes | Yes | |||||||
Com_show_slave_hosts |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_slave_status |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_status |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_storage_engines |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_tables |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_triggers |
Both | No | Yes | Yes | Yes | |||||||
Com_show_variables |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_show_warnings |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_slave_start |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_slave_stop |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_stmt_close |
4.1.13, 5.0.8 | Both | No | Yes | Yes | Yes | Yes | |||||
Com_stmt_execute |
4.1.13, 5.0.8 | Both | No | Yes | Yes | Yes | Yes | |||||
Com_stmt_fetch |
4.1.13, 5.0.8 | Both | No | Yes | Yes | Yes | Yes | |||||
Com_stmt_prepare |
4.1.13, 5.0.8 | Both | No | Yes | Yes | Yes | Yes | |||||
Com_stmt_reprepare |
5.1.25, 6.0.6 | Both | No | Yes | Yes | |||||||
Com_stmt_reset |
4.1.13, 5.0.8 | Both | No | Yes | Yes | Yes | Yes | |||||
Com_stmt_send_long_data |
4.1.13, 5.0.8 | Both | No | Yes | Yes | Yes | Yes | |||||
Com_truncate |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_unlock_tables |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_update |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_update_multi |
Both | No | Yes | Yes | Yes | Yes | ||||||
Com_xa_commit |
Both | No | Yes | Yes | Yes | |||||||
Com_xa_end |
Both | No | Yes | Yes | Yes | |||||||
Com_xa_prepare |
Both | No | Yes | Yes | Yes | |||||||
Com_xa_recover |
Both | No | Yes | Yes | Yes | |||||||
Com_xa_rollback |
Both | No | Yes | Yes | Yes | |||||||
Com_xa_start |
Both | No | Yes | Yes | Yes | |||||||
concurrent_insert |
Yes | Yes | Global | Yes | Yes | Yes | Yes | Yes | ||||
Connections |
Both | No | Yes | Yes | Yes | |||||||
connect_timeout |
Yes | Yes | Global | Yes | Yes | Yes | Yes | Yes | ||||
console |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
core-file |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||
crash_binlog_innodb |
Yes | Yes | Yes | |||||||||
Created_tmp_disk_tables |
Both | No | Yes | Yes | Yes | Yes | ||||||
Created_tmp_files |
Both | No | Yes | Yes | Yes | Yes | ||||||
Created_tmp_tables |
Both | No | Yes | Yes | Yes | Yes | ||||||
datadir |
Yes | Yes | Global | No | Yes | Yes | Yes | Yes | ||||
date_format |
Both | Yes | Yes | Yes | Yes | Yes | ||||||
datetime_format |
Yes | Yes | Both | Yes | Yes | Yes | Yes | Yes | ||||
debug |
Yes | Yes | Both | Yes | Yes | Yes | Yes | Yes | ||||
debug_sync |
6.0.6 | Both | Yes | Yes | ||||||||
debug-sync-timeout |
6.0.6 | Yes | Yes | Yes | ||||||||
default-character-set |
4.1.3 | 5.0 | Yes | Yes | Yes | Yes | ||||||
default-collation |
4.1.3 | Yes | No | Yes | ||||||||
defaults-extra-file |
Yes | Yes | Yes | Yes | Yes | |||||||
defaults-file |
Yes | Yes | Yes | Yes | Yes | |||||||
defaults-group-suffix |
5.0.10 | Yes | Yes | Yes | Yes | |||||||
default-storage-engine |
4.1.2 | Yes | Yes | Yes | Yes | Yes | Yes | |||||
default-table-type |
5.0 | Yes | Yes | Yes | Yes | Yes | Yes | |||||
default-time-zone |
4.1.3 | Yes | Yes | Yes | Yes | Yes | Yes | |||||
default_week_format |
Yes | Yes | Both | Yes | Yes | Yes | Yes | Yes | ||||
Delayed_errors |
Both | No | Yes | Yes | Yes | |||||||
delayed_insert_limit |
Yes | Yes | Global | Yes | Yes | Yes | Yes | Yes | ||||
Delayed_insert_threads |
Both | No | Yes | Yes | Yes | |||||||
delayed_insert_timeout |
Yes | Yes | Global | Yes | Yes | Yes |

