5.1 The MySQL Server

*note 'mysqld': mysqld. is the MySQL server. The following discussion covers these MySQL server configuration topics:

For listings of MySQL server variables and options that have been added, deprecated, or removed in MySQL 5.7, see *note added-deprecated-removed::.

Note:

Not all storage engines are supported by all MySQL server binaries and configurations. To find out how to determine which storage engines your MySQL server installation supports, see *note show-engines::.

 File: manual.info.tmp, Node: server-configuration, Next: server-configuration-defaults, Prev: mysqld-server, Up: mysqld-server

5.1.1 Configuring the Server

The MySQL server, *note 'mysqld': mysqld, has many command options and system variables that can be set at startup to configure its operation. To determine the default command option and system variable values used by the server, execute this command:

 $> mysqld --verbose --help

The command produces a list of all *note 'mysqld': mysqld. options and configurable system variables. Its output includes the default option and variable values and looks something like this:

 abort-slave-event-count           0
 allow-suspicious-udfs             FALSE
 archive                           ON
 auto-increment-increment          1
 auto-increment-offset             1
 autocommit                        TRUE
 automatic-sp-privileges           TRUE
 avoid-temporal-upgrade            FALSE
 back-log                          80
 basedir                           /home/jon/bin/mysql-5.7/
 ...
 tmpdir                            /tmp
 transaction-alloc-block-size      8192
 transaction-isolation             REPEATABLE-READ
 transaction-prealloc-size         4096
 transaction-read-only             FALSE
 transaction-write-set-extraction  OFF
 updatable-views-with-limit        YES
 validate-user-plugins             TRUE
 verbose                           TRUE
 wait-timeout                      28800

To see the current system variable values actually used by the server as it runs, connect to it and execute this statement:

 mysql> SHOW VARIABLES;

To see some statistical and status indicators for a running server, execute this statement:

 mysql> SHOW STATUS;

System variable and status information also is available using the *note 'mysqladmin': mysqladmin. command:

 $> mysqladmin variables
 $> mysqladmin extended-status

For a full description of all command options, system variables, and status variables, see these sections:

More detailed monitoring information is available from the Performance Schema; see note performance-schema::. In addition, the MySQL 'sys' schema is a set of objects that provides convenient access to data collected by the Performance Schema; see note sys-schema::.

MySQL uses algorithms that are very scalable, so you can usually run with very little memory. However, normally better performance results from giving MySQL more memory.

When tuning a MySQL server, the two most important variables to configure are 'key_buffer_size' and 'table_open_cache'. You should first feel confident that you have these set appropriately before trying to change any other variables.

The following examples indicate some typical variable values for different runtime configurations.

If you are performing 'GROUP BY' or 'ORDER BY' operations on tables that are much larger than your available memory, increase the value of 'read_rnd_buffer_size' to speed up the reading of rows following sorting operations.

If you specify an option on the command line for note 'mysqld': mysqld. or note 'mysqld_safe': mysqld-safe, it remains in effect only for that invocation of the server. To use the option every time the server runs, put it in an option file. See *note option-files::.

 File: manual.info.tmp, Node: server-configuration-defaults, Next: server-option-variable-reference, Prev: server-configuration, Up: mysqld-server

5.1.2 Server Configuration Defaults

The MySQL server has many operating parameters, which you can change at server startup using command-line options or configuration files (option files). It is also possible to change many parameters at runtime. For general instructions on setting parameters at startup or runtime, see note server-options::, and note server-system-variables::.

On Windows, MySQL Installer interacts with the user and creates a file named 'my.ini' in the base installation directory as the default option file. If you install on Windows from a Zip archive, you can copy the 'my-default.ini' template file in the base installation directory to 'my.ini' and use the latter as the default option file.

Note:

As of MySQL 5.7.18, 'my-default.ini' is no longer included in or installed by distribution packages.

Note:

On Windows, the '.ini' or '.cnf' option file extension might not be displayed.

After completing the installation process, you can edit the default option file at any time to modify the parameters used by the server. For example, to use a parameter setting in the file that is commented with a '#' character at the beginning of the line, remove the '#', and modify the parameter value if necessary. To disable a setting, either add a '#' to the beginning of the line or remove it.

For non-Windows platforms, no default option file is created during either the server installation or the data directory initialization process. Create your option file by following the instructions given in note option-files::. Without an option file, the server just starts with its default settings--see note server-configuration-defaults:: on how to check those settings.

For additional information about option file format and syntax, see *note option-files::.

 File: manual.info.tmp, Node: server-option-variable-reference, Next: server-system-variable-reference, Prev: server-configuration-defaults, Up: mysqld-server

5.1.3 Server Option, System Variable, and Status Variable Reference

The following table lists all command-line options, system variables, and status variables applicable within 'mysqld'.

The table lists command-line options (Cmd-line), options valid in configuration files (Option file), server system variables (System Var), and status variables (Status var) in one unified list, with an indication of where each option or variable is valid. If a server option set on the command line or in an option file differs from the name of the corresponding system variable, the variable name is noted immediately below the corresponding option. For system and status variables, the scope of the variable (Var Scope) is Global, Session, or both. Please see the corresponding item descriptions for details on setting and using the options and variables. Where appropriate, direct links to further information about the items are provided.

For a version of this table that is specific to NDB Cluster, see *note mysql-cluster-option-tables::.

Command-Line Option, System Variable, and Status Variable Summary

Name Cmd-Line Option System Status Var Scope Dynamic File Var Var

abort-slave-event-count

Yes Yes

Aborted_clients

                                   Yes         Global      No
                                                           

Aborted_connects

                                   Yes         Global      No
                                                           

allow-suspicious-udfs

Yes Yes

ansi

Yes Yes

audit-log

Yes Yes

audit_log_buffer_size

Yes Yes Yes Global No

audit_log_compression

Yes Yes Yes Global No

audit_log_connection_policy

Yes Yes Yes Global Yes

audit_log_current_session

                       Yes                     Both        No
                                                           

Audit_log_current_size

                                   Yes         Global      No
                                                           

audit_log_disable

Yes Yes Yes Global Yes

audit_log_encryption

Yes Yes Yes Global No

Audit_log_event_max_drop_size

                                   Yes         Global      No
                                                           

Audit_log_events

                                   Yes         Global      No
                                                           

Audit_log_events_filtered

                                   Yes         Global      No
                                                           

Audit_log_events_lost

                                   Yes         Global      No
                                                           

Audit_log_events_written

                                   Yes         Global      No
                                                           

audit_log_exclude_accounts

Yes Yes Yes Global Yes

audit_log_file

Yes Yes Yes Global No

audit_log_filter_id

                       Yes                     Both        No
                                                           

audit_log_flush

                       Yes                     Global      Yes
                                                           

audit_log_format

Yes Yes Yes Global No

audit_log_format_unix_timestamp

Yes Yes Yes Global Yes

audit_log_include_accounts

Yes Yes Yes Global Yes

audit_log_policy

Yes Yes Yes Global No

audit_log_read_buffer_size

Yes Yes Yes Varies 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

Audit_log_total_size

                                   Yes         Global      No
                                                           

Audit_log_write_waits

                                   Yes         Global      No
                                                           

authentication_ldap_sasl_auth_method_name

Yes Yes Yes Global Yes

authentication_ldap_sasl_bind_base_dn

Yes Yes Yes Global Yes

authentication_ldap_sasl_bind_root_dn

Yes Yes Yes Global Yes

authentication_ldap_sasl_bind_root_pwd

Yes Yes Yes Global Yes

authentication_ldap_sasl_ca_path

Yes Yes Yes Global Yes

authentication_ldap_sasl_group_search_attr

Yes Yes Yes Global Yes

authentication_ldap_sasl_group_search_filter

Yes Yes Yes Global Yes

authentication_ldap_sasl_init_pool_size

Yes Yes Yes Global Yes

authentication_ldap_sasl_log_status

Yes Yes Yes Global Yes

authentication_ldap_sasl_max_pool_size

Yes Yes Yes Global Yes

authentication_ldap_sasl_server_host

Yes Yes Yes Global Yes

authentication_ldap_sasl_server_port

Yes Yes Yes Global Yes

authentication_ldap_sasl_tls

Yes Yes Yes Global Yes

authentication_ldap_sasl_user_search_attr

Yes Yes Yes Global Yes

authentication_ldap_simple_auth_method_name

Yes Yes Yes Global Yes

authentication_ldap_simple_bind_base_dn

Yes Yes Yes Global Yes

authentication_ldap_simple_bind_root_dn

Yes Yes Yes Global Yes

authentication_ldap_simple_bind_root_pwd

Yes Yes Yes Global Yes

authentication_ldap_simple_ca_path

Yes Yes Yes Global Yes

authentication_ldap_simple_group_search_attr

Yes Yes Yes Global Yes

authentication_ldap_simple_group_search_filter

Yes Yes Yes Global Yes

authentication_ldap_simple_init_pool_size

Yes Yes Yes Global Yes

authentication_ldap_simple_log_status

Yes Yes Yes Global Yes

authentication_ldap_simple_max_pool_size

Yes Yes Yes Global Yes

authentication_ldap_simple_server_host

Yes Yes Yes Global Yes

authentication_ldap_simple_server_port

Yes Yes Yes Global Yes

authentication_ldap_simple_tls

Yes Yes Yes Global Yes

authentication_ldap_simple_user_search_attr

Yes Yes Yes Global Yes

authentication_windows_log_level

Yes Yes Yes Global No

authentication_windows_use_principal_name

Yes Yes Yes Global No

auto_generate_certs

Yes Yes Yes Global No

auto_increment_increment

Yes Yes Yes Both Yes

auto_increment_offset

Yes Yes Yes Both Yes

autocommit

Yes Yes Yes Both Yes

automatic_sp_privileges

Yes Yes Yes Global Yes

avoid_temporal_upgrade

Yes Yes Yes Global Yes

back_log

Yes Yes Yes Global No

basedir

Yes Yes Yes Global No

big_tables

Yes Yes Yes Both Yes

bind_address

Yes Yes Yes Global No

Binlog_cache_disk_use

                                   Yes         Global      No
                                                           

binlog_cache_size

Yes Yes Yes Global Yes

Binlog_cache_use

                                   Yes         Global      No
                                                           

binlog-checksum

Yes Yes

binlog_checksum

Yes Yes Yes Global Yes

binlog_direct_non_transactional_updates

Yes Yes Yes Both Yes

binlog-do-db

Yes Yes

binlog_error_action

Yes Yes Yes Global Yes

binlog_format

Yes Yes Yes Both Yes

binlog_group_commit_sync_delay

Yes Yes Yes Global Yes

binlog_group_commit_sync_no_delay_count

Yes Yes Yes Global Yes

binlog_gtid_simple_recovery

Yes Yes Yes Global No

binlog-ignore-db

Yes Yes

binlog_max_flush_queue_time

Yes Yes Yes Global Yes

binlog_order_commits

Yes Yes Yes Global Yes

binlog-row-event-max-size

Yes Yes

binlog_row_image

Yes Yes Yes Both Yes

binlog_rows_query_log_events

Yes Yes Yes Both Yes

Binlog_stmt_cache_disk_use

                                   Yes         Global      No
                                                           

binlog_stmt_cache_size

Yes Yes Yes Global Yes

Binlog_stmt_cache_use

                                   Yes         Global      No
                                                           

binlog_transaction_dependency_history_size

Yes Yes Yes Global Yes

binlog_transaction_dependency_tracking

Yes Yes Yes Global Yes

block_encryption_mode

Yes Yes Yes Both Yes

bootstrap

Yes Yes

bulk_insert_buffer_size

Yes Yes Yes Both Yes

Bytes_received

                                   Yes         Both        No
                                                           

Bytes_sent

                                   Yes         Both        No
                                                           

character_set_client

                       Yes                     Both        Yes
                                                           

character-set-client-handshake

Yes Yes

character_set_connection

                       Yes                     Both        Yes
                                                           

character_set_database (note 1)

                       Yes                     Both        Yes
                                                           

character_set_filesystem

Yes Yes Yes Both Yes

character_set_results

                       Yes                     Both        Yes
                                                           

character_set_server

Yes Yes Yes Both Yes

character_set_system

                       Yes                     Global      No
                                                           

character_sets_dir

Yes Yes Yes Global No

check_proxy_users

Yes Yes Yes Global Yes

chroot

Yes Yes

collation_connection

                       Yes                     Both        Yes
                                                           

collation_database (note 1)

                       Yes                     Both        Yes
                                                           

collation_server

Yes Yes Yes Both Yes

Com_admin_commands

                                   Yes         Both        No
                                                           

Com_alter_db

                                   Yes         Both        No
                                                           

Com_alter_db_upgrade

                                   Yes         Both        No
                                                           

Com_alter_event

                                   Yes         Both        No
                                                           

Com_alter_function

                                   Yes         Both        No
                                                           

Com_alter_procedure

                                   Yes         Both        No
                                                           

Com_alter_server

                                   Yes         Both        No
                                                           

Com_alter_table

                                   Yes         Both        No
                                                           

Com_alter_tablespace

                                   Yes         Both        No
                                                           

Com_alter_user

                                   Yes         Both        No
                                                           

Com_analyze

                                   Yes         Both        No
                                                           

Com_assign_to_keycache

                                   Yes         Both        No
                                                           

Com_begin

                                   Yes         Both        No
                                                           

Com_binlog

                                   Yes         Both        No
                                                           

Com_call_procedure

                                   Yes         Both        No
                                                           

Com_change_db

                                   Yes         Both        No
                                                           

Com_change_master

                                   Yes         Both        No
                                                           

Com_change_repl_filter

                                   Yes         Both        No
                                                           

Com_check

                                   Yes         Both        No
                                                           

Com_checksum

                                   Yes         Both        No
                                                           

Com_commit

                                   Yes         Both        No
                                                           

Com_create_db

                                   Yes         Both        No
                                                           

Com_create_event

                                   Yes         Both        No
                                                           

Com_create_function

                                   Yes         Both        No
                                                           

Com_create_index

                                   Yes         Both        No
                                                           

Com_create_procedure

                                   Yes         Both        No
                                                           

Com_create_server

                                   Yes         Both        No
                                                           

Com_create_table

                                   Yes         Both        No
                                                           

Com_create_trigger

                                   Yes         Both        No
                                                           

Com_create_udf

                                   Yes         Both        No
                                                           

Com_create_user

                                   Yes         Both        No
                                                           

Com_create_view

                                   Yes         Both        No
                                                           

Com_dealloc_sql

                                   Yes         Both        No
                                                           

Com_delete

                                   Yes         Both        No
                                                           

Com_delete_multi

                                   Yes         Both        No
                                                           

Com_do

                                   Yes         Both        No
                                                           

Com_drop_db

                                   Yes         Both        No
                                                           

Com_drop_event

                                   Yes         Both        No
                                                           

Com_drop_function

                                   Yes         Both        No
                                                           

Com_drop_index

                                   Yes         Both        No
                                                           

Com_drop_procedure

                                   Yes         Both        No
                                                           

Com_drop_server

                                   Yes         Both        No
                                                           

Com_drop_table

                                   Yes         Both        No
                                                           

Com_drop_trigger

                                   Yes         Both        No
                                                           

Com_drop_user

                                   Yes         Both        No
                                                           

Com_drop_view

                                   Yes         Both        No
                                                           

Com_empty_query

                                   Yes         Both        No
                                                           

Com_execute_sql

                                   Yes         Both        No
                                                           

Com_explain_other

                                   Yes         Both        No
                                                           

Com_flush

                                   Yes         Both        No
                                                           

Com_get_diagnostics

                                   Yes         Both        No
                                                           

Com_grant

                                   Yes         Both        No
                                                           

Com_group_replication_start

                                   Yes         Global      No
                                                           

Com_group_replication_stop

                                   Yes         Global      No
                                                           

Com_ha_close

                                   Yes         Both        No
                                                           

Com_ha_open

                                   Yes         Both        No
                                                           

Com_ha_read

                                   Yes         Both        No
                                                           

Com_help

                                   Yes         Both        No
                                                           

Com_insert

                                   Yes         Both        No
                                                           

Com_insert_select

                                   Yes         Both        No
                                                           

Com_install_plugin

                                   Yes         Both        No
                                                           

Com_kill

                                   Yes         Both        No
                                                           

Com_load

                                   Yes         Both        No
                                                           

Com_lock_tables

                                   Yes         Both        No
                                                           

Com_optimize

                                   Yes         Both        No
                                                           

Com_preload_keys

                                   Yes         Both        No
                                                           

Com_prepare_sql

                                   Yes         Both        No
                                                           

Com_purge

                                   Yes         Both        No
                                                           

Com_purge_before_date

                                   Yes         Both        No
                                                           

Com_release_savepoint

                                   Yes         Both        No
                                                           

Com_rename_table

                                   Yes         Both        No
                                                           

Com_rename_user

                                   Yes         Both        No
                                                           

Com_repair

                                   Yes         Both        No
                                                           

Com_replace

                                   Yes         Both        No
                                                           

Com_replace_select

                                   Yes         Both        No
                                                           

Com_reset

                                   Yes         Both        No
                                                           

Com_resignal

                                   Yes         Both        No
                                                           

Com_revoke

                                   Yes         Both        No
                                                           

Com_revoke_all

                                   Yes         Both        No
                                                           

Com_rollback

                                   Yes         Both        No
                                                           

Com_rollback_to_savepoint

                                   Yes         Both        No
                                                           

Com_savepoint

                                   Yes         Both        No
                                                           

Com_select

                                   Yes         Both        No
                                                           

Com_set_option

                                   Yes         Both        No
                                                           

Com_show_authors

                                   Yes         Both        No
                                                           

Com_show_binlog_events

                                   Yes         Both        No
                                                           

Com_show_binlogs

                                   Yes         Both        No
                                                           

Com_show_charsets

                                   Yes         Both        No
                                                           

Com_show_collations

                                   Yes         Both        No
                                                           

Com_show_contributors

                                   Yes         Both        No
                                                           

Com_show_create_db

                                   Yes         Both        No
                                                           

Com_show_create_event

                                   Yes         Both        No
                                                           

Com_show_create_func

                                   Yes         Both        No
                                                           

Com_show_create_proc

                                   Yes         Both        No
                                                           

Com_show_create_table

                                   Yes         Both        No
                                                           

Com_show_create_trigger

                                   Yes         Both        No
                                                           

Com_show_create_user

                                   Yes         Both        No
                                                           

Com_show_databases

                                   Yes         Both        No
                                                           

Com_show_engine_logs

                                   Yes         Both        No
                                                           

Com_show_engine_mutex

                                   Yes         Both        No
                                                           

Com_show_engine_status

                                   Yes         Both        No
                                                           

Com_show_errors

                                   Yes         Both        No
                                                           

Com_show_events

                                   Yes         Both        No
                                                           

Com_show_fields

                                   Yes         Both        No
                                                           

Com_show_function_code

                                   Yes         Both        No
                                                           

Com_show_function_status

                                   Yes         Both        No
                                                           

Com_show_grants

                                   Yes         Both        No
                                                           

Com_show_keys

                                   Yes         Both        No
                                                           

Com_show_master_status

                                   Yes         Both        No
                                                           

Com_show_ndb_status

                                   Yes         Both        No
                                                           

Com_show_open_tables

                                   Yes         Both        No
                                                           

Com_show_plugins

                                   Yes         Both        No
                                                           

Com_show_privileges

                                   Yes         Both        No
                                                           

Com_show_procedure_code

                                   Yes         Both        No
                                                           

Com_show_procedure_status

                                   Yes         Both        No
                                                           

Com_show_processlist

                                   Yes         Both        No
                                                           

Com_show_profile

                                   Yes         Both        No
                                                           

Com_show_profiles

                                   Yes         Both        No
                                                           

Com_show_relaylog_events

                                   Yes         Both        No
                                                           

Com_show_slave_hosts

                                   Yes         Both        No
                                                           

Com_show_slave_status

                                   Yes         Both        No
                                                           

Com_show_status

                                   Yes         Both        No
                                                           

Com_show_storage_engines

                                   Yes         Both        No
                                                           

Com_show_table_status

                                   Yes         Both        No
                                                           

Com_show_tables

                                   Yes         Both        No
                                                           

Com_show_triggers

                                   Yes         Both        No
                                                           

Com_show_variables

                                   Yes         Both        No
                                                           

Com_show_warnings

                                   Yes         Both        No
                                                           

Com_shutdown

                                   Yes         Both        No
                                                           

Com_signal

                                   Yes         Both        No
                                                           

Com_slave_start

                                   Yes         Both        No
                                                           

Com_slave_stop

                                   Yes         Both        No
                                                           

Com_stmt_close

                                   Yes         Both        No
                                                           

Com_stmt_execute

                                   Yes         Both        No
                                                           

Com_stmt_fetch

                                   Yes         Both        No
                                                           

Com_stmt_prepare

                                   Yes         Both        No
                                                           

Com_stmt_reprepare

                                   Yes         Both        No
                                                           

Com_stmt_reset

                                   Yes         Both        No
                                                           

Com_stmt_send_long_data

                                   Yes         Both        No
                                                           

Com_truncate

                                   Yes         Both        No
                                                           

Com_uninstall_plugin

                                   Yes         Both        No
                                                           

Com_unlock_tables

                                   Yes         Both        No
                                                           

Com_update

                                   Yes         Both        No
                                                           

Com_update_multi

                                   Yes         Both        No
                                                           

Com_xa_commit

                                   Yes         Both        No
                                                           

Com_xa_end

                                   Yes         Both        No
                                                           

Com_xa_prepare

                                   Yes         Both        No
                                                           

Com_xa_recover

                                   Yes         Both        No
                                                           

Com_xa_rollback

                                   Yes         Both        No
                                                           

Com_xa_start

                                   Yes         Both        No
                                                           

completion_type

Yes Yes Yes Both Yes

Compression

                                   Yes         Session     No
                                                           

concurrent_insert

Yes Yes Yes Global Yes

connect_timeout

Yes Yes Yes Global Yes

Connection_control_delay_generated

                                   Yes         Global      No
                                                           

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

Connection_errors_accept

                                   Yes         Global      No
                                                           

Connection_errors_internal

                                   Yes         Global      No
                                                           

Connection_errors_max_connections

                                   Yes         Global      No
                                                           

Connection_errors_peer_address

                                   Yes         Global      No
                                                           

Connection_errors_select

                                   Yes         Global      No
                                                           

Connection_errors_tcpwrap

                                   Yes         Global      No
                                                           

Connections

                                   Yes         Global      No
                                                           

console

Yes Yes

core-file

Yes Yes

core_file

                       Yes                     Global      No
                                                           

Created_tmp_disk_tables

                                   Yes         Both        No
                                                           

Created_tmp_files

                                   Yes         Global      No
                                                           

Created_tmp_tables

                                   Yes         Both        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

daemonize

Yes Yes

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
                                                           

debug-sync-timeout

Yes Yes

default_authentication_plugin

Yes Yes Yes Global No

default_password_lifetime

Yes Yes Yes Global Yes

default_storage_engine

Yes Yes Yes Both Yes

default-time-zone

Yes Yes

default_tmp_storage_engine

Yes Yes Yes Both Yes

default_week_format

Yes Yes Yes Both Yes

defaults-extra-file

Yes

defaults-file

Yes

defaults-group-suffix

Yes

delay_key_write

Yes Yes Yes Global Yes

Delayed_errors

                                   Yes         Global      No
                                                           

delayed_insert_limit

Yes Yes Yes Global Yes

Delayed_insert_threads

                                   Yes         Global      No
                                                           

delayed_insert_timeout

Yes Yes Yes Global Yes

delayed_queue_size

Yes Yes Yes Global Yes

Delayed_writes

                                   Yes         Global      No
                                                           

des-key-file

Yes Yes

disable-partition-engine-check

Yes Yes

disabled_storage_engines

Yes Yes Yes Global No

disconnect_on_expired_password

Yes Yes Yes Global No

disconnect-slave-event-count

Yes Yes

div_precision_increment

Yes Yes Yes Both Yes

early-plugin-load

Yes Yes

end_markers_in_json

Yes Yes Yes Both Yes

enforce_gtid_consistency

Yes Yes Yes Global Varies

eq_range_index_dive_limit

Yes Yes Yes Both Yes

error_count

                       Yes                     Session     No
                                                           

event_scheduler

Yes Yes Yes Global Yes

exit-info

Yes Yes

expire_logs_days

Yes Yes Yes Global Yes

explicit_defaults_for_timestamp

Yes Yes Yes Both Yes

external-locking

Yes Yes

external_user

                       Yes                     Session     No
                                                           

*note federated: federated-storage-engine.

Yes Yes

Firewall_access_denied

                                   Yes         Global      No
                                                           

Firewall_access_granted

                                   Yes         Global      No
                                                           

Firewall_cached_entries

                                   Yes         Global      No
                                                           

flush

Yes Yes Yes Global Yes

Flush_commands

                                   Yes         Global      No
                                                           

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

gdb

Yes Yes

general_log

Yes Yes Yes Global Yes

general_log_file

Yes Yes Yes Global Yes

group_concat_max_len

Yes Yes Yes Both Yes

group_replication_allow_local_disjoint_gtids_join

Yes Yes Yes Global Yes

group_replication_allow_local_lower_version_join

Yes Yes Yes Global Yes

group_replication_auto_increment_increment

Yes Yes Yes Global Yes

group_replication_bootstrap_group

Yes Yes Yes Global Yes

group_replication_components_stop_timeout

Yes Yes Yes Global Yes

group_replication_compression_threshold

Yes Yes Yes Global Yes

group_replication_enforce_update_everywhere_checks

Yes Yes Yes Global Yes

group_replication_exit_state_action

Yes Yes Yes Global Yes

group_replication_flow_control_applier_threshold

Yes Yes Yes Global Yes

group_replication_flow_control_certifier_threshold

Yes Yes Yes Global Yes

group_replication_flow_control_mode

Yes Yes Yes Global Yes

group_replication_force_members

Yes Yes Yes Global Yes

group_replication_group_name

Yes Yes Yes Global Yes

group_replication_group_seeds

Yes Yes Yes Global Yes

group_replication_gtid_assignment_block_size

Yes Yes Yes Global Yes

group_replication_ip_whitelist

Yes Yes Yes Global Yes

group_replication_local_address

Yes Yes Yes Global Yes

group_replication_member_weight

Yes Yes Yes Global Yes

group_replication_poll_spin_loops

Yes Yes Yes Global Yes

group_replication_primary_member

                                   Yes         Global      No
                                                           

group_replication_recovery_complete_at

Yes Yes Yes Global Yes

group_replication_recovery_reconnect_interval

Yes Yes Yes Global Yes

group_replication_recovery_retry_count

Yes Yes Yes Global Yes

group_replication_recovery_ssl_ca

Yes Yes Yes Global Yes

group_replication_recovery_ssl_capath

Yes Yes Yes Global Yes

group_replication_recovery_ssl_cert

Yes Yes Yes Global Yes

group_replication_recovery_ssl_cipher

Yes Yes Yes Global Yes

group_replication_recovery_ssl_crl

Yes Yes Yes Global Yes

group_replication_recovery_ssl_crlpath

Yes Yes Yes Global Yes

group_replication_recovery_ssl_key

Yes Yes Yes Global Yes

group_replication_recovery_ssl_verify_server_cert

Yes Yes Yes Global Yes

group_replication_recovery_use_ssl

Yes Yes Yes Global Yes

group_replication_single_primary_mode

Yes Yes Yes Global Yes

group_replication_ssl_mode

Yes Yes Yes Global Yes

group_replication_start_on_boot

Yes Yes Yes Global Yes

group_replication_transaction_size_limit

Yes Yes Yes Global Yes

group_replication_unreachable_majority_timeout

Yes Yes Yes Global Yes

gtid_executed

                       Yes                     Varies      No
                                                           

gtid_executed_compression_period

Yes Yes Yes Global Yes

gtid_mode

Yes Yes Yes Global Varies

gtid_next

                       Yes                     Session     Yes
                                                           

gtid_owned

                       Yes                     Both        No
                                                           

gtid_purged

                       Yes                     Global      Yes
                                                           

Handler_commit

                                   Yes         Both        No
                                                           

Handler_delete

                                   Yes         Both        No
                                                           

Handler_discover

                                   Yes         Both        No
                                                           

Handler_external_lock

                                   Yes         Both        No
                                                           

Handler_mrr_init

                                   Yes         Both        No
                                                           

Handler_prepare

                                   Yes         Both        No
                                                           

Handler_read_first

                                   Yes         Both        No
                                                           

Handler_read_key

                                   Yes         Both        No
                                                           

Handler_read_last

                                   Yes         Both        No
                                                           

Handler_read_next

                                   Yes         Both        No
                                                           

Handler_read_prev

                                   Yes         Both        No
                                                           

Handler_read_rnd

                                   Yes         Both        No
                                                           

Handler_read_rnd_next

                                   Yes         Both        No
                                                           

Handler_rollback

                                   Yes         Both        No
                                                           

Handler_savepoint

                                   Yes         Both        No
                                                           

Handler_savepoint_rollback

                                   Yes         Both        No
                                                           

Handler_update

                                   Yes         Both        No
                                                           

Handler_write

                                   Yes         Both        No
                                                           

have_compress

                       Yes                     Global      No
                                                           

have_crypt

                       Yes                     Global      No
                                                           

have_dynamic_loading

                       Yes                     Global      No
                                                           

have_geometry

                       Yes                     Global      No
                                                           

have_openssl

                       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_statement_timeout

                       Yes                     Global      No
                                                           

have_symlink

                       Yes                     Global      No
                                                           

help

Yes Yes

host_cache_size

Yes Yes Yes Global Yes

hostname

                       Yes                     Global      No
                                                           

identity

                       Yes                     Session     Yes
                                                           

ignore_builtin_innodb

Yes Yes Yes Global No

ignore-db-dir

Yes Yes

ignore_db_dirs

                       Yes                     Global      No
                                                           

init_connect

Yes Yes Yes Global Yes

init_file

Yes Yes Yes Global No

init_slave

Yes Yes Yes Global Yes

initialize

Yes Yes

initialize-insecure

Yes Yes

innodb

Yes 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_hash_index_parts

Yes Yes Yes Global No

innodb_adaptive_max_sleep_delay

Yes Yes Yes Global Yes

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_available_undo_logs

                                   Yes         Global      No
                                                           

innodb_background_drop_list_empty

Yes Yes Yes Global Yes

Innodb_buffer_pool_bytes_data

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_bytes_dirty

                                   Yes         Global      No
                                                           

innodb_buffer_pool_chunk_size

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_dump_pct

Yes Yes Yes Global Yes

Innodb_buffer_pool_dump_status

                                   Yes         Global      No
                                                           

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_load_status

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_data

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_dirty

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_flushed

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_free

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_latched

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_misc

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_pages_total

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_read_ahead

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_read_ahead_evicted

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_read_ahead_rnd

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_read_requests

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_reads

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_resize_status

                                   Yes         Global      No
                                                           

innodb_buffer_pool_size

Yes Yes Yes Global Varies

Innodb_buffer_pool_wait_free

                                   Yes         Global      No
                                                           

Innodb_buffer_pool_write_requests

                                   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_compress_debug

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_fsyncs

                                   Yes         Global      No
                                                           

innodb_data_home_dir

Yes Yes Yes Global No

Innodb_data_pending_fsyncs

                                   Yes         Global      No
                                                           

Innodb_data_pending_reads

                                   Yes         Global      No
                                                           

Innodb_data_pending_writes

                                   Yes         Global      No
                                                           

Innodb_data_read

                                   Yes         Global      No
                                                           

Innodb_data_reads

                                   Yes         Global      No
                                                           

Innodb_data_writes

                                   Yes         Global      No
                                                           

Innodb_data_written

                                   Yes         Global      No
                                                           

Innodb_dblwr_pages_written

                                   Yes         Global      No
                                                           

Innodb_dblwr_writes

                                   Yes         Global      No
                                                           

innodb_deadlock_detect

Yes Yes Yes Global Yes

innodb_default_row_format

Yes Yes Yes Global Yes

innodb_disable_resize_buffer_pool_debug

Yes Yes Yes Global Yes

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_fill_factor

Yes Yes Yes Global Yes

innodb_flush_log_at_timeout

Yes Yes 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_flush_sync

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 Both 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_have_atomic_builtins

                                   Yes         Global      No
                                                           

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_checkpoint_now

Yes Yes Yes Global Yes

innodb_log_checksums

Yes Yes Yes Global Yes

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_log_waits

                                   Yes         Global      No
                                                           

innodb_log_write_ahead_size

Yes Yes Yes Global Yes

Innodb_log_write_requests

                                   Yes         Global      No
                                                           

Innodb_log_writes

                                   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_max_undo_log_size

Yes Yes Yes Global Yes

innodb_merge_threshold_set_all_debug

Yes Yes Yes Global Yes

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_num_open_files

                                   Yes         Global      No
                                                           

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_os_log_fsyncs

                                   Yes         Global      No
                                                           

Innodb_os_log_pending_fsyncs

                                   Yes         Global      No
                                                           

Innodb_os_log_pending_writes

                                   Yes         Global      No
                                                           

Innodb_os_log_written

                                   Yes         Global      No
                                                           

innodb_page_cleaners

Yes Yes Yes Global No

Innodb_page_size

                                   Yes         Global      No
                                                           

innodb_page_size

Yes Yes Yes Global No

Innodb_pages_created

                                   Yes         Global      No
                                                           

Innodb_pages_read

                                   Yes         Global      No
                                                           

Innodb_pages_written

                                   Yes         Global      No
                                                           

innodb_print_all_deadlocks

Yes Yes Yes Global Yes

innodb_purge_batch_size

Yes Yes Yes Global Yes

innodb_purge_rseg_truncate_frequency

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_row_lock_current_waits

                                   Yes         Global      No
                                                           

Innodb_row_lock_time

                                   Yes         Global      No
                                                           

Innodb_row_lock_time_avg

                                   Yes         Global      No
                                                           

Innodb_row_lock_time_max

                                   Yes         Global      No
                                                           

Innodb_row_lock_waits

                                   Yes         Global      No
                                                           

Innodb_rows_deleted

                                   Yes         Global      No
                                                           

Innodb_rows_inserted

                                   Yes         Global      No
                                                           

Innodb_rows_read

                                   Yes         Global      No
                                                           

Innodb_rows_updated

                                   Yes         Global      No
                                                           

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-file

Yes 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_debug

Yes Yes Yes Global No

innodb_sync_spin_loops

Yes Yes Yes Global Yes

innodb_table_locks

Yes Yes Yes Both Yes

innodb_temp_data_file_path

Yes Yes Yes Global No

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_truncated_status_writes

                                   Yes         Global      No
                                                           

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_log_truncate

Yes Yes Yes Global Yes

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_version

                       Yes                     Global      No
                                                           

innodb_write_io_threads

Yes Yes Yes Global No

insert_id

                       Yes                     Session     Yes
                                                           

install

Yes

install-manual

Yes

interactive_timeout

Yes Yes Yes Both Yes

internal_tmp_disk_storage_engine

Yes Yes Yes Global Yes

join_buffer_size

Yes Yes Yes Both Yes

keep_files_on_create

Yes Yes Yes Both Yes

Key_blocks_not_flushed

                                   Yes         Global      No
                                                           

Key_blocks_unused

                                   Yes         Global      No
                                                           

Key_blocks_used

                                   Yes         Global      No
                                                           

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

Key_read_requests

                                   Yes         Global      No
                                                           

Key_reads

                                   Yes         Global      No
                                                           

Key_write_requests

                                   Yes         Global      No
                                                           

Key_writes

                                   Yes         Global      No
                                                           

keyring_aws_cmk_id

Yes Yes Yes Global Yes

keyring_aws_conf_file

Yes Yes Yes Global No

keyring_aws_data_file

Yes Yes Yes Global No

keyring_aws_region

Yes Yes Yes Global Yes

keyring_encrypted_file_data

Yes Yes Yes Global Yes

keyring_encrypted_file_password

Yes Yes Yes Global Yes

keyring_file_data

Yes Yes Yes Global Yes

keyring-migration-destination

Yes Yes

keyring-migration-host

Yes Yes

keyring-migration-password

Yes Yes

keyring-migration-port

Yes Yes

keyring-migration-socket

Yes Yes

keyring-migration-source

Yes Yes

keyring-migration-user

Yes Yes

keyring_okv_conf_dir

Yes Yes Yes Global Yes

keyring_operations

                       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 Yes Global No

last_insert_id

                       Yes                     Session     Yes
                                                           

Last_query_cost

                                   Yes         Session     No
                                                           

Last_query_partial_plans

                                   Yes         Session     No
                                                           

lc_messages

Yes Yes Yes Both Yes

lc_messages_dir

Yes Yes Yes Global No

lc_time_names

Yes Yes Yes Both Yes

license

                       Yes                     Global      No
                                                           

local_infile

Yes Yes Yes Global Yes

local-service

Yes

lock_wait_timeout

Yes Yes Yes Both Yes

Locked_connects

                                   Yes         Global      No
                                                           

locked_in_memory

                       Yes                     Global      No
                                                           

log-bin

Yes Yes

log_bin

                       Yes                     Global      No
                                                           

log_bin_basename

                       Yes                     Global      No
                                                           

log_bin_index

Yes Yes Yes Global No

log_bin_trust_function_creators

Yes Yes Yes Global Yes

log_bin_use_v1_row_events

Yes Yes Yes Global Yes

log_builtin_as_identified_by_password

Yes Yes Yes Global Yes

log_error

Yes Yes Yes Global No

log_error_verbosity

Yes Yes Yes Global Yes

log-isam

Yes Yes

log_output

Yes Yes Yes Global Yes

log_queries_not_using_indexes

Yes Yes Yes Global Yes

log-raw

Yes Yes

log-short-format

Yes Yes

log_slave_updates

Yes Yes Yes Global No

log_slow_admin_statements

Yes Yes Yes Global Yes

log_slow_slave_statements

Yes Yes Yes Global Yes

log_statements_unsafe_for_binlog

Yes Yes Yes Global Yes

log_syslog

Yes Yes Yes Global Yes

log_syslog_facility

Yes Yes Yes Global Yes

log_syslog_include_pid

Yes Yes Yes Global Yes

log_syslog_tag

Yes Yes Yes Global Yes

log-tc

Yes Yes

log-tc-size

Yes Yes

log_throttle_queries_not_using_indexes

Yes Yes Yes Global Yes

log_timestamps

Yes Yes Yes Global Yes

log_warnings

Yes Yes Yes Global Yes

long_query_time

Yes Yes Yes Both Yes

low_priority_updates

Yes Yes Yes Both Yes

lower_case_file_system

                       Yes                     Global      No
                                                           

lower_case_table_names

Yes Yes Yes Global No

master-info-file

Yes Yes

master_info_repository

Yes Yes Yes Global Yes

master-retry-count

Yes Yes

master_verify_checksum

Yes Yes Yes Global Yes

max_allowed_packet

Yes Yes Yes Both Yes

max_binlog_cache_size

Yes Yes Yes Global Yes

max-binlog-dump-events

Yes 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_execution_time

Yes Yes Yes Both Yes

Max_execution_time_exceeded

                                   Yes         Both        No
                                                           

Max_execution_time_set

                                   Yes         Both        No
                                                           

Max_execution_time_set_failed

                                   Yes         Both        No
                                                           

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_points_in_geometry

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_used_connections

                                   Yes         Global      No
                                                           

Max_used_connections_time

                                   Yes         Global      No
                                                           

max_user_connections

Yes Yes Yes Both Yes

max_write_lock_count

Yes Yes Yes Global Yes

mecab_charset

                                   Yes         Global      No
                                                           

mecab_rc_file

Yes Yes Yes Global No

memlock

Yes Yes

metadata_locks_cache_size

Yes Yes Yes Global No

metadata_locks_hash_instances

Yes Yes Yes Global No

min_examined_row_limit

Yes Yes Yes Both Yes

multi_range_count

Yes Yes Yes Both Yes

myisam-block-size

Yes 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 Yes 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_mode

Yes Yes Yes Global Yes

mysql_firewall_trace

Yes Yes Yes Global Yes

mysql_native_password_proxy_users

Yes Yes Yes Global Yes

mysqlx

Yes Yes

Mysqlx_address

                                   Yes         Global      No
                                                           

mysqlx_bind_address

Yes Yes Yes Global No

Mysqlx_bytes_received

                                   Yes         Both        No
                                                           

Mysqlx_bytes_sent

                                   Yes         Both        No
                                                           

mysqlx_connect_timeout

Yes Yes Yes Global Yes

Mysqlx_connection_accept_errors

                                   Yes         Both        No
                                                           

Mysqlx_connection_errors

                                   Yes         Both        No
                                                           

Mysqlx_connections_accepted

                                   Yes         Global      No
                                                           

Mysqlx_connections_closed

                                   Yes         Global      No
                                                           

Mysqlx_connections_rejected

                                   Yes         Global      No
                                                           

Mysqlx_crud_create_view

                                   Yes         Both        No
                                                           

Mysqlx_crud_delete

                                   Yes         Both        No
                                                           

Mysqlx_crud_drop_view

                                   Yes         Both        No
                                                           

Mysqlx_crud_find

                                   Yes         Both        No
                                                           

Mysqlx_crud_insert

                                   Yes         Both        No
                                                           

Mysqlx_crud_modify_view

                                   Yes         Both        No
                                                           

Mysqlx_crud_update

                                   Yes         Both        No
                                                           

Mysqlx_errors_sent

                                   Yes         Both        No
                                                           

Mysqlx_errors_unknown_message_type

                                   Yes         Both        No
                                                           

Mysqlx_expect_close

                                   Yes         Both        No
                                                           

Mysqlx_expect_open

                                   Yes         Both        No
                                                           

mysqlx_idle_worker_thread_timeout

Yes Yes Yes Global Yes

Mysqlx_init_error

                                   Yes         Both        No
                                                           

mysqlx_max_allowed_packet

Yes Yes Yes Global Yes

mysqlx_max_connections

Yes Yes Yes Global Yes

mysqlx_min_worker_threads

Yes Yes Yes Global Yes

Mysqlx_notice_other_sent

                                   Yes         Both        No
                                                           

Mysqlx_notice_warning_sent

                                   Yes         Both        No
                                                           

Mysqlx_port

                                   Yes         Global      No
                                                           

mysqlx_port

Yes Yes Yes Global No

mysqlx_port_open_timeout

Yes Yes Yes Global No

Mysqlx_rows_sent

                                   Yes         Both        No
                                                           

Mysqlx_sessions

                                   Yes         Global      No
                                                           

Mysqlx_sessions_accepted

                                   Yes         Global      No
                                                           

Mysqlx_sessions_closed

                                   Yes         Global      No
                                                           

Mysqlx_sessions_fatal_error

                                   Yes         Global      No
                                                           

Mysqlx_sessions_killed

                                   Yes         Global      No
                                                           

Mysqlx_sessions_rejected

                                   Yes         Global      No
                                                           

Mysqlx_socket

                                   Yes         Global      No
                                                           

mysqlx_socket

Yes Yes Yes Global No

Mysqlx_ssl_accept_renegotiates

                                   Yes         Global      No
                                                           

Mysqlx_ssl_accepts

                                   Yes         Global      No
                                                           

Mysqlx_ssl_active

                                   Yes         Both        No
                                                           

mysqlx_ssl_ca

Yes Yes Yes Global No

mysqlx_ssl_capath

Yes Yes Yes Global No

mysqlx_ssl_cert

Yes Yes Yes Global No

Mysqlx_ssl_cipher

                                   Yes         Both        No
                                                           

mysqlx_ssl_cipher

Yes Yes Yes Global No

Mysqlx_ssl_cipher_list

                                   Yes         Both        No
                                                           

mysqlx_ssl_crl

Yes Yes Yes Global No

mysqlx_ssl_crlpath

Yes Yes Yes Global No

Mysqlx_ssl_ctx_verify_depth

                                   Yes         Both        No
                                                           

Mysqlx_ssl_ctx_verify_mode

                                   Yes         Both        No
                                                           

Mysqlx_ssl_finished_accepts

                                   Yes         Global      No
                                                           

mysqlx_ssl_key

Yes Yes Yes Global No

Mysqlx_ssl_server_not_after

                                   Yes         Global      No
                                                           

Mysqlx_ssl_server_not_before

                                   Yes         Global      No
                                                           

Mysqlx_ssl_verify_depth

                                   Yes         Global      No
                                                           

Mysqlx_ssl_verify_mode

                                   Yes         Global      No
                                                           

Mysqlx_ssl_version

                                   Yes         Both        No
                                                           

Mysqlx_stmt_create_collection

                                   Yes         Both        No
                                                           

Mysqlx_stmt_create_collection_index

                                   Yes         Both        No
                                                           

Mysqlx_stmt_disable_notices

                                   Yes         Both        No
                                                           

Mysqlx_stmt_drop_collection

                                   Yes         Both        No
                                                           

Mysqlx_stmt_drop_collection_index

                                   Yes         Both        No
                                                           

Mysqlx_stmt_enable_notices

                                   Yes         Both        No
                                                           

Mysqlx_stmt_ensure_collection

                                   Yes         Both        No
                                                           

Mysqlx_stmt_execute_mysqlx

                                   Yes         Both        No
                                                           

Mysqlx_stmt_execute_sql

                                   Yes         Both        No
                                                           

Mysqlx_stmt_execute_xplugin

                                   Yes         Both        No
                                                           

Mysqlx_stmt_kill_client

                                   Yes         Both        No
                                                           

Mysqlx_stmt_list_clients

                                   Yes         Both        No
                                                           

Mysqlx_stmt_list_notices

                                   Yes         Both        No
                                                           

Mysqlx_stmt_list_objects

                                   Yes         Both        No
                                                           

Mysqlx_stmt_ping

                                   Yes         Both        No
                                                           

Mysqlx_worker_threads

                                   Yes         Global      No
                                                           

Mysqlx_worker_threads_active

                                   Yes         Global      No
                                                           

named_pipe

Yes Yes Yes Global No

named_pipe_full_access_group

Yes Yes Yes Global No

ndb_allow_copying_alter_table

Yes Yes Yes Both Yes

Ndb_api_adaptive_send_deferred_count

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_deferred_count_session

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_deferred_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_forced_count

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_forced_count_session

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_forced_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_unforced_count

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_unforced_count_session

                                   Yes         Global      No
                                                           

Ndb_api_adaptive_send_unforced_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_bytes_received_count

                                   Yes         Global      No
                                                           

Ndb_api_bytes_received_count_session

                                   Yes         Session     No
                                                           

Ndb_api_bytes_received_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_bytes_sent_count

                                   Yes         Global      No
                                                           

Ndb_api_bytes_sent_count_session

                                   Yes         Session     No
                                                           

Ndb_api_bytes_sent_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_event_bytes_count

                                   Yes         Global      No
                                                           

Ndb_api_event_bytes_count_injector

                                   Yes         Global      No
                                                           

Ndb_api_event_data_count

                                   Yes         Global      No
                                                           

Ndb_api_event_data_count_injector

                                   Yes         Global      No
                                                           

Ndb_api_event_nondata_count

                                   Yes         Global      No
                                                           

Ndb_api_event_nondata_count_injector

                                   Yes         Global      No
                                                           

Ndb_api_pk_op_count

                                   Yes         Global      No
                                                           

Ndb_api_pk_op_count_session

                                   Yes         Session     No
                                                           

Ndb_api_pk_op_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_pruned_scan_count

                                   Yes         Global      No
                                                           

Ndb_api_pruned_scan_count_session

                                   Yes         Session     No
                                                           

Ndb_api_pruned_scan_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_range_scan_count

                                   Yes         Global      No
                                                           

Ndb_api_range_scan_count_session

                                   Yes         Session     No
                                                           

Ndb_api_range_scan_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_read_row_count

                                   Yes         Global      No
                                                           

Ndb_api_read_row_count_session

                                   Yes         Session     No
                                                           

Ndb_api_read_row_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_scan_batch_count

                                   Yes         Global      No
                                                           

Ndb_api_scan_batch_count_session

                                   Yes         Session     No
                                                           

Ndb_api_scan_batch_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_table_scan_count

                                   Yes         Global      No
                                                           

Ndb_api_table_scan_count_session

                                   Yes         Session     No
                                                           

Ndb_api_table_scan_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_trans_abort_count

                                   Yes         Global      No
                                                           

Ndb_api_trans_abort_count_session

                                   Yes         Session     No
                                                           

Ndb_api_trans_abort_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_trans_close_count

                                   Yes         Global      No
                                                           

Ndb_api_trans_close_count_session

                                   Yes         Session     No
                                                           

Ndb_api_trans_close_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_trans_commit_count

                                   Yes         Global      No
                                                           

Ndb_api_trans_commit_count_session

                                   Yes         Session     No
                                                           

Ndb_api_trans_commit_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_trans_local_read_row_count

                                   Yes         Global      No
                                                           

Ndb_api_trans_local_read_row_count_session

                                   Yes         Session     No
                                                           

Ndb_api_trans_local_read_row_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_trans_start_count

                                   Yes         Global      No
                                                           

Ndb_api_trans_start_count_session

                                   Yes         Session     No
                                                           

Ndb_api_trans_start_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_uk_op_count

                                   Yes         Global      No
                                                           

Ndb_api_uk_op_count_session

                                   Yes         Session     No
                                                           

Ndb_api_uk_op_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_wait_exec_complete_count

                                   Yes         Global      No
                                                           

Ndb_api_wait_exec_complete_count_session

                                   Yes         Session     No
                                                           

Ndb_api_wait_exec_complete_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_wait_meta_request_count

                                   Yes         Global      No
                                                           

Ndb_api_wait_meta_request_count_session

                                   Yes         Session     No
                                                           

Ndb_api_wait_meta_request_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_wait_nanos_count

                                   Yes         Global      No
                                                           

Ndb_api_wait_nanos_count_session

                                   Yes         Session     No
                                                           

Ndb_api_wait_nanos_count_slave

                                   Yes         Global      No
                                                           

Ndb_api_wait_scan_result_count

                                   Yes         Global      No
                                                           

Ndb_api_wait_scan_result_count_session

                                   Yes         Session     No
                                                           

Ndb_api_wait_scan_result_count_slave

                                   Yes         Global      No
                                                           

ndb_autoincrement_prefetch_sz

Yes Yes Yes Both Yes

ndb_batch_size

Yes Yes Yes Both Yes

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_cluster_connection_pool_nodeids

Yes Yes Yes Global No

Ndb_cluster_node_id

                                   Yes         Global      No
                                                           

Ndb_config_from_host

                                   Yes         Both        No
                                                           

Ndb_config_from_port

                                   Yes         Both        No
                                                           

Ndb_conflict_fn_epoch

                                   Yes         Global      No
                                                           

Ndb_conflict_fn_epoch_trans

                                   Yes         Global      No
                                                           

Ndb_conflict_fn_epoch2

                                   Yes         Global      No
                                                           

Ndb_conflict_fn_epoch2_trans

                                   Yes         Global      No
                                                           

Ndb_conflict_fn_max

                                   Yes         Global      No
                                                           

Ndb_conflict_fn_max_del_win

                                   Yes         Global      No
                                                           

Ndb_conflict_fn_old

                                   Yes         Global      No
                                                           

Ndb_conflict_last_conflict_epoch

                                   Yes         Global      No
                                                           

Ndb_conflict_last_stable_epoch

                                   Yes         Global      No
                                                           

Ndb_conflict_reflected_op_discard_count

                                   Yes         Global      No
                                                           

Ndb_conflict_reflected_op_prepare_count

                                   Yes         Global      No
                                                           

Ndb_conflict_refresh_op_count

                                   Yes         Global      No
                                                           

Ndb_conflict_trans_conflict_commit_count

                                   Yes         Global      No
                                                           

Ndb_conflict_trans_detect_iter_count

                                   Yes         Global      No
                                                           

Ndb_conflict_trans_reject_count

                                   Yes         Global      No
                                                           

Ndb_conflict_trans_row_conflict_count

                                   Yes         Global      No
                                                           

Ndb_conflict_trans_row_reject_count

                                   Yes         Global      No
                                                           

ndb-connectstring

Yes Yes

ndb_data_node_neighbour

Yes Yes Yes Global Yes

ndb_default_column_format

Yes Yes Yes Global Yes

ndb_default_column_format

Yes Yes Yes Global Yes

ndb_deferred_constraints

Yes Yes Yes Both Yes

ndb_deferred_constraints

Yes Yes Yes Both Yes

ndb_distribution

Yes Yes Yes Global Yes

ndb_distribution

Yes Yes Yes Global Yes

Ndb_epoch_delete_delete_count

                                   Yes         Global      No
                                                           

ndb_eventbuffer_free_percent

Yes Yes Yes Global Yes

ndb_eventbuffer_max_alloc

Yes Yes Yes Global Yes

Ndb_execute_count

                                   Yes         Global      No
                                                           

ndb_extra_logging

Yes Yes Yes Global Yes

ndb_force_send

Yes Yes Yes Both Yes

ndb_fully_replicated

Yes Yes Yes Both Yes

ndb_index_stat_enable

Yes Yes Yes Both Yes

ndb_index_stat_option

Yes Yes Yes Both Yes

ndb_join_pushdown

                       Yes                     Both        Yes
                                                           

Ndb_last_commit_epoch_server

                                   Yes         Global      No
                                                           

Ndb_last_commit_epoch_session

                                   Yes         Session     No
                                                           

ndb_log_apply_status

Yes Yes Yes Global No

ndb_log_apply_status

Yes Yes Yes Global No

ndb_log_bin

Yes Yes Both No

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 Both Yes

ndb_log_exclusive_reads

Yes Yes Yes Both Yes

ndb_log_fail_terminate

Yes Yes Yes Global No

ndb_log_orig

Yes Yes Yes Global No

ndb_log_orig

Yes Yes Yes Global No

ndb_log_transaction_id

Yes Yes Yes Global No

ndb_log_transaction_id

                       Yes                     Global      No
                                                           

ndb_log_update_as_write

Yes Yes Yes Global Yes

ndb_log_update_minimal

Yes Yes Yes Global Yes

ndb_log_updated_only

Yes Yes Yes Global Yes

ndb-mgmd-host

Yes Yes

ndb_nodeid

Yes Yes Yes Global No

Ndb_number_of_data_nodes

                                   Yes         Global      No
                                                           

ndb_optimization_delay

Yes Yes Yes Global Yes

ndb-optimized-node-selection

Yes

ndb_optimized_node_selection

Yes Yes Yes Global No

Ndb_pruned_scan_count

                                   Yes         Global      No
                                                           

Ndb_pushed_queries_defined

                                   Yes         Global      No
                                                           

Ndb_pushed_queries_dropped

                                   Yes         Global      No
                                                           

Ndb_pushed_queries_executed

                                   Yes         Global      No
                                                           

Ndb_pushed_reads

                                   Yes         Global      No
                                                           

ndb_read_backup

Yes Yes Yes Global Yes

ndb_recv_thread_activation_threshold

Yes Yes Yes Global Yes

ndb_recv_thread_cpu_mask

Yes Yes 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_row_checksum

                       Yes                     Both        Yes
                                                           

Ndb_scan_count

                                   Yes         Global      No
                                                           

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_system_name

                       Yes                     Global      No
                                                           

ndb_table_no_logging

                       Yes                     Session     Yes
                                                           

ndb_table_temporary

                       Yes                     Session     Yes
                                                           

ndb-transid-mysql-connection-map

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

ndbcluster

Yes Yes

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                     Global      No
                                                           

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

ngram_token_size

Yes Yes Yes Global No

no-defaults

Yes

Not_flushed_delayed_rows

                                   Yes         Global      No
                                                           

offline_mode

Yes Yes Yes Global Yes

old

Yes Yes Yes Global No

old_alter_table

Yes Yes Yes Both Yes

old_passwords

Yes Yes Yes Both Yes

old-style-user-limits

Yes Yes

Ongoing_anonymous_gtid_violating_transaction_count

                                   Yes         Global      No
                                                           

Ongoing_anonymous_transaction_count

                                   Yes         Global      No
                                                           

Ongoing_automatic_gtid_violating_transaction_count

                                   Yes         Global      No
                                                           

Open_files

                                   Yes         Global      No
                                                           

open_files_limit

Yes Yes Yes Global No

Open_streams

                                   Yes         Global      No
                                                           

Open_table_definitions

                                   Yes         Global      No
                                                           

Open_tables

                                   Yes         Both        No
                                                           

Opened_files

                                   Yes         Global      No
                                                           

Opened_table_definitions

                                   Yes         Both        No
                                                           

Opened_tables

                                   Yes         Both        No
                                                           

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 Yes Yes Both Yes

optimizer_trace_features

Yes Yes Yes Both Yes

optimizer_trace_limit

Yes Yes Yes Both Yes

optimizer_trace_max_mem_size

Yes Yes Yes Both Yes

optimizer_trace_offset

Yes Yes Yes Both Yes

parser_max_mem_size

Yes Yes Yes Both Yes

partition

Yes Yes

performance_schema

Yes Yes Yes Global No

Performance_schema_accounts_lost

                                   Yes         Global      No
                                                           

performance_schema_accounts_size

Yes Yes Yes Global No

Performance_schema_cond_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_cond_instances_lost

                                   Yes         Global      No
                                                           

performance-schema-consumer-events-stages-current

Yes Yes

performance-schema-consumer-events-stages-history

Yes Yes

performance-schema-consumer-events-stages-history-long

Yes Yes

performance-schema-consumer-events-statements-current

Yes Yes

performance-schema-consumer-events-statements-history

Yes Yes

performance-schema-consumer-events-statements-history-long

Yes Yes

performance-schema-consumer-events-transactions-current

Yes Yes

performance-schema-consumer-events-transactions-history

Yes Yes

performance-schema-consumer-events-transactions-history-long

Yes Yes

performance-schema-consumer-events-waits-current

Yes Yes

performance-schema-consumer-events-waits-history

Yes Yes

performance-schema-consumer-events-waits-history-long

Yes Yes

performance-schema-consumer-global-instrumentation

Yes Yes

performance-schema-consumer-statements-digest

Yes Yes

performance-schema-consumer-thread-instrumentation

Yes Yes

Performance_schema_digest_lost

                                   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_transactions_history_long_size

Yes Yes Yes Global No

performance_schema_events_transactions_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_file_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_file_handles_lost

                                   Yes         Global      No
                                                           

Performance_schema_file_instances_lost

                                   Yes         Global      No
                                                           

Performance_schema_hosts_lost

                                   Yes         Global      No
                                                           

performance_schema_hosts_size

Yes Yes Yes Global No

Performance_schema_index_stat_lost

                                   Yes         Global      No
                                                           

performance-schema-instrument

Yes Yes

Performance_schema_locker_lost

                                   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_index_stat

Yes Yes Yes Global No

performance_schema_max_memory_classes

Yes Yes Yes Global No

performance_schema_max_metadata_locks

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_prepared_statements_instances

Yes Yes Yes Global No

performance_schema_max_program_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_sql_text_length

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_statement_stack

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_table_lock_stat

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_memory_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_metadata_lock_lost

                                   Yes         Global      No
                                                           

Performance_schema_mutex_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_mutex_instances_lost

                                   Yes         Global      No
                                                           

Performance_schema_nested_statement_lost

                                   Yes         Global      No
                                                           

Performance_schema_prepared_statements_lost

                                   Yes         Global      No
                                                           

Performance_schema_program_lost

                                   Yes         Global      No
                                                           

Performance_schema_rwlock_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_rwlock_instances_lost

                                   Yes         Global      No
                                                           

Performance_schema_session_connect_attrs_lost

                                   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_show_processlist

Yes Yes Yes Global Yes

Performance_schema_socket_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_socket_instances_lost

                                   Yes         Global      No
                                                           

Performance_schema_stage_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_statement_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_table_handles_lost

                                   Yes         Global      No
                                                           

Performance_schema_table_instances_lost

                                   Yes         Global      No
                                                           

Performance_schema_table_lock_stat_lost

                                   Yes         Global      No
                                                           

Performance_schema_thread_classes_lost

                                   Yes         Global      No
                                                           

Performance_schema_thread_instances_lost

                                   Yes         Global      No
                                                           

Performance_schema_users_lost

                                   Yes         Global      No
                                                           

performance_schema_users_size

Yes Yes Yes Global No

pid_file

Yes Yes Yes Global No

plugin_dir

Yes Yes Yes Global No

plugin-load

Yes Yes

plugin-load-add

Yes Yes

plugin-xxx

Yes Yes

port

Yes Yes Yes Global No

port-open-timeout

Yes Yes

preload_buffer_size

Yes Yes Yes Both Yes

Prepared_stmt_count

                                   Yes         Global      No
                                                           

print-defaults

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
                                                           

Qcache_free_blocks

                                   Yes         Global      No
                                                           

Qcache_free_memory

                                   Yes         Global      No
                                                           

Qcache_hits

                                   Yes         Global      No
                                                           

Qcache_inserts

                                   Yes         Global      No
                                                           

Qcache_lowmem_prunes

                                   Yes         Global      No
                                                           

Qcache_not_cached

                                   Yes         Global      No
                                                           

Qcache_queries_in_cache

                                   Yes         Global      No
                                                           

Qcache_total_blocks

                                   Yes         Global      No
                                                           

Queries

                                   Yes         Both        No
                                                           

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

Questions

                                   Yes         Both        No
                                                           

rand_seed1

                       Yes                     Session     Yes
                                                           

rand_seed2

                       Yes                     Session     Yes
                                                           

range_alloc_block_size

Yes Yes Yes Both Yes

range_optimizer_max_mem_size

Yes Yes Yes Both Yes

rbr_exec_mode

                       Yes                     Session     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 Yes Global No

relay_log_basename

                       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 Yes Yes Global Yes

relay_log_purge

Yes Yes Yes Global Yes

relay_log_recovery

Yes Yes Yes Global No

relay_log_space_limit

Yes Yes Yes Global No

remove

Yes

replicate-do-db

Yes Yes

replicate-do-table

Yes Yes

replicate-ignore-db

Yes Yes

replicate-ignore-table

Yes Yes

replicate-rewrite-db

Yes Yes

replicate-same-server-id

Yes Yes

replicate-wild-do-table

Yes Yes

replicate-wild-ignore-table

Yes Yes

replication_optimize_for_static_plugin_config

Yes Yes Yes Global Yes

replication_sender_observe_commit_only

Yes Yes Yes Global Yes

report_host

Yes Yes Yes Global No

report_password

Yes Yes Yes Global No

report_port

Yes Yes Yes Global No

report_user

Yes Yes Yes Global No

require_secure_transport

Yes Yes Yes Global Yes

rewriter_enabled

                       Yes                     Global      Yes
                                                           

Rewriter_number_loaded_rules

                                   Yes         Global      No
                                                           

Rewriter_number_reloads

                                   Yes         Global      No
                                                           

Rewriter_number_rewritten_queries

                                   Yes         Global      No
                                                           

Rewriter_reload_error

                                   Yes         Global      No
                                                           

rewriter_verbose

                       Yes                     Global      Yes
                                                           

Rpl_semi_sync_master_clients

                                   Yes         Global      No
                                                           

rpl_semi_sync_master_enabled

Yes Yes Yes Global Yes

Rpl_semi_sync_master_net_avg_wait_time

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_net_wait_time

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_net_waits

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_no_times

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_no_tx

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_status

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_timefunc_failures

                                   Yes         Global      No
                                                           

rpl_semi_sync_master_timeout

Yes Yes Yes Global Yes

rpl_semi_sync_master_trace_level

Yes Yes Yes Global Yes

Rpl_semi_sync_master_tx_avg_wait_time

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_tx_wait_time

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_tx_waits

                                   Yes         Global      No
                                                           

rpl_semi_sync_master_wait_for_slave_count

Yes Yes Yes Global Yes

rpl_semi_sync_master_wait_no_slave

Yes Yes Yes Global Yes

rpl_semi_sync_master_wait_point

Yes Yes Yes Global Yes

Rpl_semi_sync_master_wait_pos_backtraverse

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_wait_sessions

                                   Yes         Global      No
                                                           

Rpl_semi_sync_master_yes_tx

                                   Yes         Global      No
                                                           

rpl_semi_sync_slave_enabled

Yes Yes Yes Global Yes

Rpl_semi_sync_slave_status

                                   Yes         Global      No
                                                           

rpl_semi_sync_slave_trace_level

Yes Yes Yes Global Yes

rpl_stop_slave_timeout

Yes Yes Yes Global Yes

Rsa_public_key

                                   Yes         Global      No
                                                           

safe-user-create

Yes Yes

secure_auth

Yes Yes Yes Global Yes

secure_file_priv

Yes Yes Yes Global No

Select_full_join

                                   Yes         Both        No
                                                           

Select_full_range_join

                                   Yes         Both        No
                                                           

Select_range

                                   Yes         Both        No
                                                           

Select_range_check

                                   Yes         Both        No
                                                           

Select_scan

                                   Yes         Both        No
                                                           

server_id

Yes Yes Yes Global Yes

server_id_bits

Yes Yes Yes Global No

server_uuid

                       Yes                     Global      No
                                                           

session_track_gtids

Yes Yes Yes Both Yes

session_track_schema

Yes Yes Yes Both Yes

session_track_state_change

Yes Yes Yes Both Yes

session_track_system_variables

Yes Yes Yes Both Yes

session_track_transaction_info

Yes Yes Yes Both Yes

sha256_password_auto_generate_rsa_keys

Yes Yes Yes Global No

sha256_password_private_key_path

Yes Yes Yes Global No

sha256_password_proxy_users

Yes Yes Yes Global Yes

sha256_password_public_key_path

Yes Yes Yes Global No

shared_memory

Yes Yes Yes Global No

shared_memory_base_name

Yes Yes Yes Global No

show_compatibility_56

Yes Yes Yes Global Yes

show_create_table_verbosity

Yes Yes Yes Both Yes

show_old_temporals

Yes Yes Yes Both Yes

show-slave-auth-info

Yes Yes

skip-character-set-client-handshake

Yes Yes

skip_external_locking

Yes Yes Yes Global No

skip-grant-tables

Yes Yes

skip-host-cache

Yes Yes

skip_name_resolve

Yes Yes Yes Global No

skip-ndbcluster

Yes Yes

skip_networking

Yes Yes Yes Global No

skip-new

Yes Yes

skip-partition

Yes Yes

skip_show_database

Yes Yes Yes Global No

skip_slave_start

Yes Yes Yes Global No

skip-ssl

Yes Yes

skip-stack-trace

Yes Yes

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_heartbeat_period

                                   Yes         Global      No
                                                           

Slave_last_heartbeat

                                   Yes         Global      No
                                                           

slave_load_tmpdir

Yes Yes Yes Global No

slave_max_allowed_packet

Yes Yes Yes Global Yes

slave_net_timeout

Yes Yes Yes Global Yes

Slave_open_temp_tables

                                   Yes         Global      No
                                                           

slave_parallel_type

Yes Yes Yes Global Yes

slave_parallel_workers

Yes Yes Yes Global Yes

slave_pending_jobs_size_max

Yes Yes Yes Global Yes

slave_preserve_commit_order

Yes Yes Yes Global Yes

Slave_received_heartbeats

                                   Yes         Global      No
                                                           

Slave_retried_transactions

                                   Yes         Global      No
                                                           

Slave_rows_last_search_algorithm_used

                                   Yes         Global      No
                                                           

slave_rows_search_algorithms

Yes Yes Yes Global Yes

Slave_running

                                   Yes         Global      No
                                                           

slave_skip_errors

Yes Yes Yes Global No

slave-sql-verify-checksum

Yes Yes

slave_sql_verify_checksum

Yes Yes Yes Global Yes

slave_transaction_retries

Yes Yes Yes Global Yes

slave_type_conversions

Yes Yes Yes Global Yes

Slow_launch_threads

                                   Yes         Both        No
                                                           

slow_launch_time

Yes Yes Yes Global Yes

Slow_queries

                                   Yes         Both        No
                                                           

slow_query_log

Yes Yes Yes Global Yes

slow_query_log_file

Yes Yes Yes Global Yes

slow-start-timeout

Yes Yes

socket

Yes Yes Yes Global No

sort_buffer_size

Yes Yes Yes Both Yes

Sort_merge_passes

                                   Yes         Both        No
                                                           

Sort_range

                                   Yes         Both        No
                                                           

Sort_rows

                                   Yes         Both        No
                                                           

Sort_scan

                                   Yes         Both        No
                                                           

sporadic-binlog-dump-fail

Yes Yes

sql_auto_is_null

                       Yes                     Both        Yes
                                                           

sql_big_selects

                       Yes                     Both        Yes
                                                           

sql_buffer_result

                       Yes                     Both        Yes
                                                           

sql_log_bin

                       Yes                     Session     Yes
                                                           

sql_log_off

                       Yes                     Both        Yes
                                                           

sql_mode

Yes Yes 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

Yes Yes

Ssl_accept_renegotiates

                                   Yes         Global      No
                                                           

Ssl_accepts

                                   Yes         Global      No
                                                           

ssl_ca

Yes Yes Yes Global No

Ssl_callback_cache_hits

                                   Yes         Global      No
                                                           

ssl_capath

Yes Yes Yes Global No

ssl_cert

Yes Yes Yes Global No

Ssl_cipher

                                   Yes         Both        No
                                                           

ssl_cipher

Yes Yes Yes Global No

Ssl_cipher_list

                                   Yes         Both        No
                                                           

Ssl_client_connects

                                   Yes         Global      No
                                                           

Ssl_connect_renegotiates

                                   Yes         Global      No
                                                           

ssl_crl

Yes Yes Yes Global No

ssl_crlpath

Yes Yes Yes Global No

Ssl_ctx_verify_depth

                                   Yes         Global      No
                                                           

Ssl_ctx_verify_mode

                                   Yes         Global      No
                                                           

Ssl_default_timeout

                                   Yes         Both        No
                                                           

Ssl_finished_accepts

                                   Yes         Global      No
                                                           

Ssl_finished_connects

                                   Yes         Global      No
                                                           

ssl_key

Yes Yes Yes Global No

Ssl_server_not_after

                                   Yes         Both        No
                                                           

Ssl_server_not_before

                                   Yes         Both        No
                                                           

Ssl_session_cache_hits

                                   Yes         Global      No
                                                           

Ssl_session_cache_misses

                                   Yes         Global      No
                                                           

Ssl_session_cache_mode

                                   Yes         Global      No
                                                           

Ssl_session_cache_overflows

                                   Yes         Global      No
                                                           

Ssl_session_cache_size

                                   Yes         Global      No
                                                           

Ssl_session_cache_timeouts

                                   Yes         Global      No
                                                           

Ssl_sessions_reused

                                   Yes         Session     No
                                                           

Ssl_used_session_cache_entries

                                   Yes         Global      No
                                                           

Ssl_verify_depth

                                   Yes         Both        No
                                                           

Ssl_verify_mode

                                   Yes         Both        No
                                                           

Ssl_version

                                   Yes         Both        No
                                                           

standalone

Yes Yes

stored_program_cache

Yes Yes Yes Global Yes

super-large-pages

Yes Yes

super_read_only

Yes Yes Yes Global Yes

symbolic-links

Yes 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

sysdate-is-now

Yes Yes

system_time_zone

                       Yes                     Global      No
                                                           

table_definition_cache

Yes Yes Yes Global Yes

Table_locks_immediate

                                   Yes         Global      No
                                                           

Table_locks_waited

                                   Yes         Global      No
                                                           

table_open_cache

Yes Yes Yes Global Yes

Table_open_cache_hits

                                   Yes         Both        No
                                                           

table_open_cache_instances

Yes Yes Yes Global No

Table_open_cache_misses

                                   Yes         Both        No
                                                           

Table_open_cache_overflows

                                   Yes         Both        No
                                                           

tc-heuristic-recover

Yes Yes

Tc_log_max_pages_used

                                   Yes         Global      No
                                                           

Tc_log_page_size

                                   Yes         Global      No
                                                           

Tc_log_page_waits

                                   Yes         Global      No
                                                           

temp-pool

Yes Yes

thread_cache_size

Yes Yes Yes Global Yes

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 Global 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

Threads_cached

                                   Yes         Global      No
                                                           

Threads_connected

                                   Yes         Global      No
                                                           

Threads_created

                                   Yes         Global      No
                                                           

Threads_running

                                   Yes         Global      No
                                                           

time_format

                       Yes                     Global      No
                                                           

time_zone

                       Yes                     Both        Yes
                                                           

timestamp

                       Yes                     Session     Yes
                                                           

tls_version

Yes Yes Yes Global No

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_isolation

Yes Yes Both Yes

transaction_prealloc_size

Yes Yes Yes Both Yes

transaction_read_only

Yes Yes Both Yes

transaction_write_set_extraction

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

Uptime

                                   Yes         Global      No
                                                           

Uptime_since_flush_status

                                   Yes         Global      No
                                                           

user

Yes Yes

validate-password

Yes Yes

validate_password_check_user_name

Yes Yes Yes Global Yes

validate_password_dictionary_file

Yes Yes Yes Global Varies

validate_password_dictionary_file_last_parsed

                                   Yes         Global      No
                                                           

validate_password_dictionary_file_words_count

                                   Yes         Global      No
                                                           

validate_password_length

Yes Yes Yes Global Yes

validate_password_mixed_case_count

Yes Yes Yes Global Yes

validate_password_number_count

Yes Yes Yes Global Yes

validate_password_policy

Yes Yes Yes Global Yes

validate_password_special_char_count

Yes Yes Yes Global Yes

validate-user-plugins

Yes Yes

verbose

Yes Yes

version

                       Yes                     Global      No
                                                           

version_comment

                       Yes                     Global      No
                                                           

version_compile_machine

                       Yes                     Global      No
                                                           

version_compile_os

                       Yes                     Global      No
                                                           

version_tokens_session

Yes Yes Yes Both Yes

version_tokens_session_number

Yes Yes Yes Both No

wait_timeout

Yes Yes Yes Both Yes

warning_count

                       Yes                     Session     No
                                               

Notes: 1. This option is dynamic, but should be set only by server. You should not set this variable manually.

 File: manual.info.tmp, Node: server-system-variable-reference, Next: server-status-variable-reference, Prev: server-option-variable-reference, Up: mysqld-server

5.1.4 Server System Variable Reference

The following table lists all system variables applicable within 'mysqld'.

The table lists command-line options (Cmd-line), options valid in configuration files (Option file), server system variables (System Var), and status variables (Status var) in one unified list, with an indication of where each option or variable is valid. If a server option set on the command line or in an option file differs from the name of the corresponding system variable, the variable name is noted immediately below the corresponding option. The scope of the variable (Var Scope) is Global, Session, or both. Please see the corresponding item descriptions for details on setting and using the variables. Where appropriate, direct links to further information about the items are provided.

System Variable Summary

Name Cmd-Line Option System Var Scope Dynamic File Var

audit_log_buffer_size

Yes Yes Yes Global No

audit_log_compression

Yes Yes Yes Global No

audit_log_connection_policy

Yes Yes Yes Global Yes

audit_log_current_session

                       Yes         Both        No
                                               

audit_log_disable

Yes Yes Yes Global Yes

audit_log_encryption

Yes Yes Yes Global No

audit_log_exclude_accounts

Yes Yes Yes Global Yes

audit_log_file

Yes Yes Yes Global No

audit_log_filter_id

                       Yes         Both        No
                                               

audit_log_flush

                       Yes         Global      Yes
                                               

audit_log_format

Yes Yes Yes Global No

audit_log_format_unix_timestamp

Yes Yes Yes Global Yes

audit_log_include_accounts

Yes Yes Yes Global Yes

audit_log_policy

Yes Yes Yes Global No

audit_log_read_buffer_size

Yes Yes Yes Varies 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

authentication_ldap_sasl_auth_method_name

Yes Yes Yes Global Yes

authentication_ldap_sasl_bind_base_dn

Yes Yes Yes Global Yes

authentication_ldap_sasl_bind_root_dn

Yes Yes Yes Global Yes

authentication_ldap_sasl_bind_root_pwd

Yes Yes Yes Global Yes

authentication_ldap_sasl_ca_path

Yes Yes Yes Global Yes

authentication_ldap_sasl_group_search_attr

Yes Yes Yes Global Yes

authentication_ldap_sasl_group_search_filter

Yes Yes Yes Global Yes

authentication_ldap_sasl_init_pool_size

Yes Yes Yes Global Yes

authentication_ldap_sasl_log_status

Yes Yes Yes Global Yes

authentication_ldap_sasl_max_pool_size

Yes Yes Yes Global Yes

authentication_ldap_sasl_server_host

Yes Yes Yes Global Yes

authentication_ldap_sasl_server_port

Yes Yes Yes Global Yes

authentication_ldap_sasl_tls

Yes Yes Yes Global Yes

authentication_ldap_sasl_user_search_attr

Yes Yes Yes Global Yes

authentication_ldap_simple_auth_method_name

Yes Yes Yes Global Yes

authentication_ldap_simple_bind_base_dn

Yes Yes Yes Global Yes

authentication_ldap_simple_bind_root_dn

Yes Yes Yes Global Yes

authentication_ldap_simple_bind_root_pwd

Yes Yes Yes Global Yes

authentication_ldap_simple_ca_path

Yes Yes Yes Global Yes

authentication_ldap_simple_group_search_attr

Yes Yes Yes Global Yes

authentication_ldap_simple_group_search_filter

Yes Yes Yes Global Yes

authentication_ldap_simple_init_pool_size

Yes Yes Yes Global Yes

authentication_ldap_simple_log_status

Yes Yes Yes Global Yes

authentication_ldap_simple_max_pool_size

Yes Yes Yes Global Yes

authentication_ldap_simple_server_host

Yes Yes Yes Global Yes

authentication_ldap_simple_server_port

Yes Yes Yes Global Yes

authentication_ldap_simple_tls

Yes Yes Yes Global Yes

authentication_ldap_simple_user_search_attr

Yes Yes Yes Global Yes

authentication_windows_log_level

Yes Yes Yes Global No

authentication_windows_use_principal_name

Yes Yes Yes Global No

auto_generate_certs

Yes Yes Yes Global No

auto_increment_increment

Yes Yes Yes Both Yes

auto_increment_offset

Yes Yes Yes Both Yes

autocommit

Yes Yes Yes Both Yes

automatic_sp_privileges

Yes Yes Yes Global Yes

avoid_temporal_upgrade

Yes Yes Yes Global Yes

back_log

Yes Yes Yes Global No

basedir

Yes Yes Yes Global No

big_tables

Yes Yes Yes Both Yes

bind_address

Yes Yes Yes Global No

binlog_cache_size

Yes Yes Yes Global Yes

binlog_checksum

Yes Yes Yes Global Yes

binlog_direct_non_transactional_updates

Yes Yes Yes Both Yes

binlog_error_action

Yes Yes Yes Global Yes

binlog_format

Yes Yes Yes Both Yes

binlog_group_commit_sync_delay

Yes Yes Yes Global Yes

binlog_group_commit_sync_no_delay_count

Yes Yes Yes Global Yes

binlog_gtid_simple_recovery

Yes Yes Yes Global No

binlog_max_flush_queue_time

Yes Yes Yes Global Yes

binlog_order_commits

Yes Yes Yes Global Yes

binlog_row_image

Yes Yes Yes Both Yes

binlog_rows_query_log_events

Yes Yes Yes Both Yes

binlog_stmt_cache_size

Yes Yes Yes Global Yes

binlog_transaction_dependency_history_size

Yes Yes Yes Global Yes

binlog_transaction_dependency_tracking

Yes Yes Yes Global 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 (note 1)

                       Yes         Both        Yes
                                               

character_set_filesystem

Yes Yes Yes Both Yes

character_set_results

                       Yes         Both        Yes
                                               

character_set_server

Yes Yes Yes Both Yes

character_set_system

                       Yes         Global      No
                                               

character_sets_dir

Yes Yes Yes Global No

check_proxy_users

Yes Yes Yes Global Yes

collation_connection

                       Yes         Both        Yes
                                               

collation_database (note 1)

                       Yes         Both        Yes
                                               

collation_server

Yes Yes 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
                                               

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_authentication_plugin

Yes Yes Yes Global No

default_password_lifetime

Yes Yes Yes Global Yes

default_storage_engine

Yes Yes 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 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

disabled_storage_engines

Yes Yes Yes Global No

disconnect_on_expired_password

Yes Yes Yes Global No

div_precision_increment

Yes Yes Yes Both Yes

end_markers_in_json

Yes Yes Yes Both Yes

enforce_gtid_consistency

Yes Yes Yes Global Varies

eq_range_index_dive_limit

Yes Yes Yes Both Yes

error_count

                       Yes         Session     No
                                               

event_scheduler

Yes Yes 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 Global Yes

general_log_file

Yes Yes Yes Global Yes

group_concat_max_len

Yes Yes Yes Both Yes

group_replication_allow_local_disjoint_gtids_join

Yes Yes Yes Global Yes

group_replication_allow_local_lower_version_join

Yes Yes Yes Global Yes

group_replication_auto_increment_increment

Yes Yes Yes Global Yes

group_replication_bootstrap_group

Yes Yes Yes Global Yes

group_replication_components_stop_timeout

Yes Yes Yes Global Yes

group_replication_compression_threshold

Yes Yes Yes Global Yes

group_replication_enforce_update_everywhere_checks

Yes Yes Yes Global Yes

group_replication_exit_state_action

Yes Yes Yes Global Yes

group_replication_flow_control_applier_threshold

Yes Yes Yes Global Yes

group_replication_flow_control_certifier_threshold

Yes Yes Yes Global Yes

group_replication_flow_control_mode

Yes Yes Yes Global Yes

group_replication_force_members

Yes Yes Yes Global Yes

group_replication_group_name

Yes Yes Yes Global Yes

group_replication_group_seeds

Yes Yes Yes Global Yes

group_replication_gtid_assignment_block_size

Yes Yes Yes Global Yes

group_replication_ip_whitelist

Yes Yes Yes Global Yes

group_replication_local_address

Yes Yes Yes Global Yes

group_replication_member_weight

Yes Yes Yes Global Yes

group_replication_poll_spin_loops

Yes Yes Yes Global Yes

group_replication_recovery_complete_at

Yes Yes Yes Global Yes

group_replication_recovery_reconnect_interval

Yes Yes Yes Global Yes

group_replication_recovery_retry_count

Yes Yes Yes Global Yes

group_replication_recovery_ssl_ca

Yes Yes Yes Global Yes

group_replication_recovery_ssl_capath

Yes Yes Yes Global Yes

group_replication_recovery_ssl_cert

Yes Yes Yes Global Yes

group_replication_recovery_ssl_cipher

Yes Yes Yes Global Yes

group_replication_recovery_ssl_crl

Yes Yes Yes Global Yes

group_replication_recovery_ssl_crlpath

Yes Yes Yes Global Yes

group_replication_recovery_ssl_key

Yes Yes Yes Global Yes

group_replication_recovery_ssl_verify_server_cert

Yes Yes Yes Global Yes

group_replication_recovery_use_ssl

Yes Yes Yes Global Yes

group_replication_single_primary_mode

Yes Yes Yes Global Yes

group_replication_ssl_mode

Yes Yes Yes Global Yes

group_replication_start_on_boot

Yes Yes Yes Global Yes

group_replication_transaction_size_limit

Yes Yes Yes Global Yes

group_replication_unreachable_majority_timeout

Yes Yes Yes Global Yes

gtid_executed

                       Yes         Varies      No
                                               

gtid_executed_compression_period

Yes Yes Yes Global Yes

gtid_mode

Yes Yes Yes Global Varies

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_dynamic_loading

                       Yes         Global      No
                                               

have_geometry

                       Yes         Global      No
                                               

have_openssl

                       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_statement_timeout

                       Yes         Global      No
                                               

have_symlink

                       Yes         Global      No
                                               

host_cache_size

Yes Yes Yes Global Yes

hostname

                       Yes         Global      No
                                               

identity

                       Yes         Session     Yes
                                               

ignore_builtin_innodb

Yes Yes Yes Global No

ignore_db_dirs

                       Yes         Global      No
                                               

init_connect

Yes Yes Yes Global Yes

init_file

Yes Yes 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_hash_index_parts

Yes Yes Yes Global No

innodb_adaptive_max_sleep_delay

Yes Yes Yes Global Yes

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_background_drop_list_empty

Yes Yes Yes Global Yes

innodb_buffer_pool_chunk_size

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_dump_pct

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 Varies

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_compress_debug

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_deadlock_detect

Yes Yes Yes Global Yes

innodb_default_row_format

Yes Yes Yes Global Yes

innodb_disable_resize_buffer_pool_debug

Yes Yes Yes Global Yes

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_fill_factor

Yes Yes Yes Global Yes

innodb_flush_log_at_timeout

Yes Yes 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_flush_sync

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 Both 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_checkpoint_now

Yes Yes Yes Global Yes

innodb_log_checksums

Yes Yes Yes Global Yes

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_log_write_ahead_size

Yes Yes Yes Global Yes

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_max_undo_log_size

Yes Yes Yes Global Yes

innodb_merge_threshold_set_all_debug

Yes Yes Yes Global Yes

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_cleaners

Yes Yes Yes Global No

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_rseg_truncate_frequency

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_debug

Yes Yes Yes Global No

innodb_sync_spin_loops

Yes Yes Yes Global Yes

innodb_table_locks

Yes Yes Yes Both Yes

innodb_temp_data_file_path

Yes Yes Yes Global No

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_log_truncate

Yes Yes Yes Global Yes

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_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

internal_tmp_disk_storage_engine

Yes Yes Yes Global 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

keyring_aws_cmk_id

Yes Yes Yes Global Yes

keyring_aws_conf_file

Yes Yes Yes Global No

keyring_aws_data_file

Yes Yes Yes Global No

keyring_aws_region

Yes Yes Yes Global Yes

keyring_encrypted_file_data

Yes Yes Yes Global Yes

keyring_encrypted_file_password

Yes Yes Yes Global Yes

keyring_file_data

Yes Yes Yes Global Yes

keyring_okv_conf_dir

Yes Yes Yes Global Yes

keyring_operations

                       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 Yes Global No

last_insert_id

                       Yes         Session     Yes
                                               

lc_messages

Yes Yes Yes Both Yes

lc_messages_dir

Yes Yes Yes Global No

lc_time_names

Yes Yes Yes Both Yes

license

                       Yes         Global      No
                                               

local_infile

Yes Yes Yes Global Yes

lock_wait_timeout

Yes Yes Yes Both Yes

locked_in_memory

                       Yes         Global      No
                                               

log_bin

                       Yes         Global      No
                                               

log_bin_basename

                       Yes         Global      No
                                               

log_bin_index

Yes Yes Yes Global No

log_bin_trust_function_creators

Yes Yes Yes Global Yes

log_bin_use_v1_row_events

Yes Yes Yes Global Yes

log_builtin_as_identified_by_password

Yes Yes Yes Global Yes

log_error

Yes Yes Yes Global No

log_error_verbosity

Yes Yes Yes Global Yes

log_output

Yes Yes Yes Global Yes

log_queries_not_using_indexes

Yes Yes Yes Global Yes

log_slave_updates

Yes Yes Yes Global No

log_slow_admin_statements

Yes Yes Yes Global Yes

log_slow_slave_statements

Yes Yes Yes Global Yes

log_statements_unsafe_for_binlog

Yes Yes Yes Global Yes

log_syslog

Yes Yes Yes Global Yes

log_syslog_facility

Yes Yes Yes Global Yes

log_syslog_include_pid

Yes Yes Yes Global Yes

log_syslog_tag

Yes Yes Yes Global Yes

log_throttle_queries_not_using_indexes

Yes Yes Yes Global Yes

log_timestamps

Yes Yes Yes Global Yes

log_warnings

Yes Yes Yes Global Yes

long_query_time

Yes Yes Yes Both Yes

low_priority_updates

Yes Yes 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 Yes 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_execution_time

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_points_in_geometry

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

mecab_rc_file

Yes Yes Yes Global No

metadata_locks_cache_size

Yes Yes Yes Global No

metadata_locks_hash_instances

Yes Yes 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 Yes 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_mode

Yes Yes Yes Global Yes

mysql_firewall_trace

Yes Yes Yes Global Yes

mysql_native_password_proxy_users

Yes Yes Yes Global Yes

mysqlx_bind_address

Yes Yes Yes Global No

mysqlx_connect_timeout

Yes Yes Yes Global Yes

mysqlx_idle_worker_thread_timeout

Yes Yes Yes Global Yes

mysqlx_max_allowed_packet

Yes Yes Yes Global Yes

mysqlx_max_connections

Yes Yes Yes Global Yes

mysqlx_min_worker_threads

Yes Yes Yes Global Yes

mysqlx_port

Yes Yes Yes Global No

mysqlx_port_open_timeout

Yes Yes Yes Global No

mysqlx_socket

Yes Yes Yes Global No

mysqlx_ssl_ca

Yes Yes Yes Global No

mysqlx_ssl_capath

Yes Yes Yes Global No

mysqlx_ssl_cert

Yes Yes Yes Global No

mysqlx_ssl_cipher

Yes Yes Yes Global No

mysqlx_ssl_crl

Yes Yes Yes Global No

mysqlx_ssl_crlpath

Yes Yes Yes Global No

mysqlx_ssl_key

Yes Yes Yes Global No

named_pipe

Yes Yes Yes Global No

named_pipe_full_access_group

Yes Yes Yes Global No

ndb_allow_copying_alter_table

Yes Yes Yes Both Yes

ndb_autoincrement_prefetch_sz

Yes Yes Yes Both Yes

ndb_batch_size

Yes Yes Yes Both Yes

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_cluster_connection_pool_nodeids

Yes Yes Yes Global No

ndb_data_node_neighbour

Yes Yes Yes Global Yes

ndb_default_column_format

Yes Yes Yes Global Yes

ndb_default_column_format

Yes Yes Yes Global Yes

ndb_deferred_constraints

Yes Yes Yes Both Yes

ndb_deferred_constraints

Yes Yes Yes Both Yes

ndb_distribution

Yes Yes 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_fully_replicated

Yes Yes Yes Both Yes

ndb_index_stat_enable

Yes Yes Yes Both Yes

ndb_index_stat_option

Yes Yes Yes Both Yes

ndb_join_pushdown

                       Yes         Both        Yes
                                               

ndb_log_apply_status

Yes Yes Yes Global No

ndb_log_apply_status

Yes Yes Yes Global No

ndb_log_bin

Yes Yes Both No

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 Both Yes

ndb_log_exclusive_reads

Yes Yes Yes Both Yes

ndb_log_fail_terminate

Yes Yes Yes Global No

ndb_log_orig

Yes Yes Yes Global No

ndb_log_orig

Yes Yes Yes Global No

ndb_log_transaction_id

Yes Yes Yes Global No

ndb_log_transaction_id

                       Yes         Global      No
                                               

ndb_log_update_as_write

Yes Yes Yes Global Yes

ndb_log_update_minimal

Yes Yes Yes Global Yes

ndb_log_updated_only

Yes Yes Yes Global Yes

ndb_optimization_delay

Yes Yes Yes Global Yes

ndb_optimized_node_selection

Yes Yes Yes Global No

ndb_read_backup

Yes Yes Yes Global Yes

ndb_recv_thread_activation_threshold

Yes Yes Yes Global Yes

ndb_recv_thread_cpu_mask

Yes Yes 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_row_checksum

                       Yes         Both        Yes
                                               

ndb_show_foreign_key_mock_tables

Yes Yes Yes Global Yes

ndb_slave_conflict_role

Yes Yes Yes Global Yes

Ndb_system_name

                       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         Global      No
                                               

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

ngram_token_size

Yes Yes Yes Global No

offline_mode

Yes Yes Yes Global Yes

old

Yes Yes Yes Global No

old_alter_table

Yes Yes Yes Both Yes

old_passwords

Yes Yes Yes Both Yes

open_files_limit

Yes Yes Yes Global No

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 Yes Yes Both Yes

optimizer_trace_features

Yes Yes Yes Both Yes

optimizer_trace_limit

Yes Yes Yes Both Yes

optimizer_trace_max_mem_size

Yes Yes Yes Both Yes

optimizer_trace_offset

Yes Yes Yes Both Yes

parser_max_mem_size

Yes Yes 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_transactions_history_long_size

Yes Yes Yes Global No

performance_schema_events_transactions_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_index_stat

Yes Yes Yes Global No

performance_schema_max_memory_classes

Yes Yes Yes Global No

performance_schema_max_metadata_locks

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_prepared_statements_instances

Yes Yes Yes Global No

performance_schema_max_program_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_sql_text_length

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_statement_stack

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_table_lock_stat

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_show_processlist

Yes Yes Yes Global Yes

performance_schema_users_size

Yes Yes Yes Global No

pid_file

Yes Yes 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

range_optimizer_max_mem_size

Yes Yes Yes Both Yes

rbr_exec_mode

                       Yes         Session     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 Yes Global No

relay_log_basename

                       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 Yes Yes Global Yes

relay_log_purge

Yes Yes Yes Global Yes

relay_log_recovery

Yes Yes Yes Global No

relay_log_space_limit

Yes Yes Yes Global No

replication_optimize_for_static_plugin_config

Yes Yes Yes Global Yes

replication_sender_observe_commit_only

Yes Yes Yes Global Yes

report_host

Yes Yes Yes Global No

report_password

Yes Yes Yes Global No

report_port

Yes Yes Yes Global No

report_user

Yes Yes Yes Global No

require_secure_transport

Yes Yes Yes Global Yes

rewriter_enabled

                       Yes         Global      Yes
                                               

rewriter_verbose

                       Yes         Global      Yes
                                               

rpl_semi_sync_master_enabled

Yes Yes Yes Global Yes

rpl_semi_sync_master_timeout

Yes Yes Yes Global Yes

rpl_semi_sync_master_trace_level

Yes Yes Yes Global Yes

rpl_semi_sync_master_wait_for_slave_count

Yes Yes Yes Global Yes

rpl_semi_sync_master_wait_no_slave

Yes Yes Yes Global Yes

rpl_semi_sync_master_wait_point

Yes Yes Yes Global Yes

rpl_semi_sync_slave_enabled

Yes Yes Yes Global Yes

rpl_semi_sync_slave_trace_level

Yes Yes Yes Global Yes

rpl_stop_slave_timeout

Yes Yes Yes Global Yes

secure_auth

Yes Yes Yes Global Yes

secure_file_priv

Yes Yes Yes Global No

server_id

Yes Yes Yes Global Yes

server_id_bits

Yes Yes Yes Global No

server_uuid

                       Yes         Global      No
                                               

session_track_gtids

Yes Yes Yes Both Yes

session_track_schema

Yes Yes Yes Both Yes

session_track_state_change

Yes Yes Yes Both Yes

session_track_system_variables

Yes Yes Yes Both Yes

session_track_transaction_info

Yes Yes Yes Both Yes

sha256_password_auto_generate_rsa_keys

Yes Yes Yes Global No

sha256_password_private_key_path

Yes Yes Yes Global No

sha256_password_proxy_users

Yes Yes Yes Global Yes

sha256_password_public_key_path

Yes Yes Yes Global No

shared_memory

Yes Yes Yes Global No

shared_memory_base_name

Yes Yes Yes Global No

show_compatibility_56

Yes Yes Yes Global Yes

show_create_table_verbosity

Yes Yes Yes Both Yes

show_old_temporals

Yes Yes Yes Both Yes

skip_external_locking

Yes Yes Yes Global No

skip_name_resolve

Yes Yes Yes Global No

skip_networking

Yes Yes Yes Global No

skip_show_database

Yes Yes Yes Global No

skip_slave_start

Yes Yes 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 Yes Global No

slave_max_allowed_packet

Yes Yes Yes Global Yes

slave_net_timeout

Yes Yes Yes Global Yes

slave_parallel_type

Yes Yes Yes Global Yes

slave_parallel_workers

Yes Yes Yes Global Yes

slave_pending_jobs_size_max

Yes Yes Yes Global Yes

slave_preserve_commit_order

Yes Yes Yes Global Yes

slave_rows_search_algorithms

Yes Yes Yes Global Yes

slave_skip_errors

Yes Yes Yes Global No

slave_sql_verify_checksum

Yes Yes Yes Global Yes

slave_transaction_retries

Yes Yes Yes Global Yes

slave_type_conversions

Yes Yes Yes Global Yes

slow_launch_time

Yes Yes Yes Global Yes

slow_query_log

Yes Yes 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_buffer_result

                       Yes         Both        Yes
                                               

sql_log_bin

                       Yes         Session     Yes
                                               

sql_log_off

                       Yes         Both        Yes
                                               

sql_mode

Yes Yes 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 Yes Global No

ssl_capath

Yes Yes Yes Global No

ssl_cert

Yes Yes Yes Global No

ssl_cipher

Yes Yes Yes Global No

ssl_crl

Yes Yes Yes Global No

ssl_crlpath

Yes Yes Yes Global No

ssl_key

Yes Yes Yes Global No

stored_program_cache

Yes Yes Yes Global Yes

super_read_only

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 Yes Yes Global Yes

table_open_cache

Yes Yes Yes Global Yes

table_open_cache_instances

Yes Yes Yes Global No

thread_cache_size

Yes Yes Yes Global Yes

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 Global 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
                                               

timestamp

                       Yes         Session     Yes
                                               

tls_version

Yes Yes Yes Global No

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_isolation

Yes Yes Yes

transaction_prealloc_size

Yes Yes Yes Both Yes

transaction_read_only

Yes Yes Yes

transaction_write_set_extraction

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_check_user_name

Yes Yes Yes Global Yes

validate_password_dictionary_file

Yes Yes Yes Global Varies

validate_password_length

Yes Yes Yes Global Yes

validate_password_mixed_case_count

Yes Yes Yes Global Yes

validate_password_number_count

Yes Yes Yes Global Yes

validate_password_policy

Yes Yes Yes Global Yes

validate_password_special_char_count

Yes Yes Yes Global Yes

version

                       Yes         Global      No
                                               

version_comment

                       Yes         Global      No
                                               

version_compile_machine

                       Yes         Global      No
                                               

version_compile_os

                       Yes         Global      No
                                               

version_tokens_session

Yes Yes Yes Both Yes

version_tokens_session_number

Yes Yes Yes Both No

wait_timeout

Yes Yes Yes Both Yes

warning_count

                       Yes         Session     No
                                   

Notes: 1. This option is dynamic, but should be set only by server. You should not set this variable manually.

 File: manual.info.tmp, Node: server-status-variable-reference, Next: server-options, Prev: server-system-variable-reference, Up: mysqld-server

5.1.5 Server Status Variable Reference

The following table lists all status variables applicable within 'mysqld'.

The table lists each variable's data type and scope. The last column indicates whether the scope for each variable is Global, Session, or both. Please see the corresponding item descriptions for details on setting and using the variables. Where appropriate, direct links to further information about the items are provided.

Status Variable Summary

Variable Name Variable Variable Type Scope

Aborted_clients

Integer Global

Aborted_connects

Integer Global

Audit_log_current_size

Integer Global

Audit_log_event_max_drop_size

Integer Global

Audit_log_events

Integer Global

Audit_log_events_filtered

Integer Global

Audit_log_events_lost

Integer Global

Audit_log_events_written

Integer Global

Audit_log_total_size

Integer Global

Audit_log_write_waits

Integer Global

Binlog_cache_disk_use

Integer Global

Binlog_cache_use

Integer Global

Binlog_stmt_cache_disk_use

Integer Global

Binlog_stmt_cache_use

Integer Global

Bytes_received

Integer Both

Bytes_sent

Integer Both

Com_admin_commands

Integer Both

Com_alter_db

Integer Both

Com_alter_db_upgrade

Integer Both

Com_alter_event

Integer Both

Com_alter_function

Integer Both

Com_alter_procedure

Integer Both

Com_alter_server

Integer Both

Com_alter_table

Integer Both

Com_alter_tablespace

Integer Both

Com_alter_user

Integer Both

Com_analyze

Integer Both

Com_assign_to_keycache

Integer Both

Com_begin

Integer Both

Com_binlog

Integer Both

Com_call_procedure

Integer Both

Com_change_db

Integer Both

Com_change_master

Integer Both

Com_change_repl_filter

Integer Both

Com_check

Integer Both

Com_checksum

Integer Both

Com_commit

Integer Both

Com_create_db

Integer Both

Com_create_event

Integer Both

Com_create_function

Integer Both

Com_create_index

Integer Both

Com_create_procedure

Integer Both

Com_create_server

Integer Both

Com_create_table

Integer Both

Com_create_trigger

Integer Both

Com_create_udf

Integer Both

Com_create_user

Integer Both

Com_create_view

Integer Both

Com_dealloc_sql

Integer Both

Com_delete

Integer Both

Com_delete_multi

Integer Both

Com_do

Integer Both

Com_drop_db

Integer Both

Com_drop_event

Integer Both

Com_drop_function

Integer Both

Com_drop_index

Integer Both

Com_drop_procedure

Integer Both

Com_drop_server

Integer Both

Com_drop_table

Integer Both

Com_drop_trigger

Integer Both

Com_drop_user

Integer Both

Com_drop_view

Integer Both

Com_empty_query

Integer Both

Com_execute_sql

Integer Both

Com_explain_other

Integer Both

Com_flush

Integer Both

Com_get_diagnostics

Integer Both

Com_grant

Integer Both

Com_group_replication_start

Integer Global

Com_group_replication_stop

Integer Global

Com_ha_close

Integer Both

Com_ha_open

Integer Both

Com_ha_read

Integer Both

Com_help

Integer Both

Com_insert

Integer Both

Com_insert_select

Integer Both

Com_install_plugin

Integer Both

Com_kill

Integer Both

Com_load

Integer Both

Com_lock_tables

Integer Both

Com_optimize

Integer Both

Com_preload_keys

Integer Both

Com_prepare_sql

Integer Both

Com_purge

Integer Both

Com_purge_before_date

Integer Both

Com_release_savepoint

Integer Both

Com_rename_table

Integer Both

Com_rename_user

Integer Both

Com_repair

Integer Both

Com_replace

Integer Both

Com_replace_select

Integer Both

Com_reset

Integer Both

Com_resignal

Integer Both

Com_revoke

Integer Both

Com_revoke_all

Integer Both

Com_rollback

Integer Both

Com_rollback_to_savepoint

Integer Both

Com_savepoint

Integer Both

Com_select

Integer Both

Com_set_option

Integer Both

Com_show_authors

Integer Both

Com_show_binlog_events

Integer Both

Com_show_binlogs

Integer Both

Com_show_charsets

Integer Both

Com_show_collations

Integer Both

Com_show_contributors

Integer Both

Com_show_create_db

Integer Both

Com_show_create_event

Integer Both

Com_show_create_func

Integer Both

Com_show_create_proc

Integer Both

Com_show_create_table

Integer Both

Com_show_create_trigger

Integer Both

Com_show_create_user

Integer Both

Com_show_databases

Integer Both

Com_show_engine_logs

Integer Both

Com_show_engine_mutex

Integer Both

Com_show_engine_status

Integer Both

Com_show_errors

Integer Both

Com_show_events

Integer Both

Com_show_fields

Integer Both

Com_show_function_code

Integer Both

Com_show_function_status

Integer Both

Com_show_grants

Integer Both

Com_show_keys

Integer Both

Com_show_master_status

Integer Both

Com_show_ndb_status

Integer Both

Com_show_open_tables

Integer Both

Com_show_plugins

Integer Both

Com_show_privileges

Integer Both

Com_show_procedure_code

Integer Both

Com_show_procedure_status

Integer Both

Com_show_processlist

Integer Both

Com_show_profile

Integer Both

Com_show_profiles

Integer Both

Com_show_relaylog_events

Integer Both

Com_show_slave_hosts

Integer Both

Com_show_slave_status

Integer Both

Com_show_status

Integer Both

Com_show_storage_engines

Integer Both

Com_show_table_status

Integer Both

Com_show_tables

Integer Both

Com_show_triggers

Integer Both

Com_show_variables

Integer Both

Com_show_warnings

Integer Both

Com_shutdown

Integer Both

Com_signal

Integer Both

Com_slave_start

Integer Both

Com_slave_stop

Integer Both

Com_stmt_close

Integer Both

Com_stmt_execute

Integer Both

Com_stmt_fetch

Integer Both

Com_stmt_prepare

Integer Both

Com_stmt_reprepare

Integer Both

Com_stmt_reset

Integer Both

Com_stmt_send_long_data

Integer Both

Com_truncate

Integer Both

Com_uninstall_plugin

Integer Both

Com_unlock_tables

Integer Both

Com_update

Integer Both

Com_update_multi

Integer Both

Com_xa_commit

Integer Both

Com_xa_end

Integer Both

Com_xa_prepare

Integer Both

Com_xa_recover

Integer Both

Com_xa_rollback

Integer Both

Com_xa_start

Integer Both

Compression

Integer Session

Connection_control_delay_generated

Integer Global

Connection_errors_accept

Integer Global

Connection_errors_internal

Integer Global

Connection_errors_max_connections

Integer Global

Connection_errors_peer_address

Integer Global

Connection_errors_select

Integer Global

Connection_errors_tcpwrap

Integer Global

Connections

Integer Global

Created_tmp_disk_tables

Integer Both

Created_tmp_files

Integer Global

Created_tmp_tables

Integer Both

Delayed_errors

Integer Global

Delayed_insert_threads

Integer Global

Delayed_writes

Integer Global

Firewall_access_denied

Integer Global

Firewall_access_granted

Integer Global

Firewall_cached_entries

Integer Global

Flush_commands

Integer Global

group_replication_primary_member

String Global

Handler_commit

Integer Both

Handler_delete

Integer Both

Handler_discover

Integer Both

Handler_external_lock

Integer Both

Handler_mrr_init

Integer Both

Handler_prepare

Integer Both

Handler_read_first

Integer Both

Handler_read_key

Integer Both

Handler_read_last

Integer Both

Handler_read_next

Integer Both

Handler_read_prev

Integer Both

Handler_read_rnd

Integer Both

Handler_read_rnd_next

Integer Both

Handler_rollback

Integer Both

Handler_savepoint

Integer Both

Handler_savepoint_rollback

Integer Both

Handler_update

Integer Both

Handler_write

Integer Both

Innodb_available_undo_logs

Integer Global

Innodb_buffer_pool_bytes_data

Integer Global

Innodb_buffer_pool_bytes_dirty

Integer Global

Innodb_buffer_pool_dump_status

String Global

Innodb_buffer_pool_load_status

String Global

Innodb_buffer_pool_pages_data

Integer Global

Innodb_buffer_pool_pages_dirty

Integer Global

Innodb_buffer_pool_pages_flushed

Integer Global

Innodb_buffer_pool_pages_free

Integer Global

Innodb_buffer_pool_pages_latched

Integer Global

Innodb_buffer_pool_pages_misc

Integer Global

Innodb_buffer_pool_pages_total

Integer Global

Innodb_buffer_pool_read_ahead

Integer Global

Innodb_buffer_pool_read_ahead_evicted

Integer Global

Innodb_buffer_pool_read_ahead_rnd

Integer Global

Innodb_buffer_pool_read_requests

Integer Global

Innodb_buffer_pool_reads

Integer Global

Innodb_buffer_pool_resize_status

String Global

Innodb_buffer_pool_wait_free

Integer Global

Innodb_buffer_pool_write_requests

Integer Global

Innodb_data_fsyncs

Integer Global

Innodb_data_pending_fsyncs

Integer Global

Innodb_data_pending_reads

Integer Global

Innodb_data_pending_writes

Integer Global

Innodb_data_read

Integer Global

Innodb_data_reads

Integer Global

Innodb_data_writes

Integer Global

Innodb_data_written

Integer Global

Innodb_dblwr_pages_written

Integer Global

Innodb_dblwr_writes

Integer Global

Innodb_have_atomic_builtins

Integer Global

Innodb_log_waits

Integer Global

Innodb_log_write_requests

Integer Global

Innodb_log_writes

Integer Global

Innodb_num_open_files

Integer Global

Innodb_os_log_fsyncs

Integer Global

Innodb_os_log_pending_fsyncs

Integer Global

Innodb_os_log_pending_writes

Integer Global

Innodb_os_log_written

Integer Global

Innodb_page_size

Integer Global

Innodb_pages_created

Integer Global

Innodb_pages_read

Integer Global

Innodb_pages_written

Integer Global

Innodb_row_lock_current_waits

Integer Global

Innodb_row_lock_time

Integer Global

Innodb_row_lock_time_avg

Integer Global

Innodb_row_lock_time_max

Integer Global

Innodb_row_lock_waits

Integer Global

Innodb_rows_deleted

Integer Global

Innodb_rows_inserted

Integer Global

Innodb_rows_read

Integer Global

Innodb_rows_updated

Integer Global

Innodb_truncated_status_writes

Integer Global

Key_blocks_not_flushed

Integer Global

Key_blocks_unused

Integer Global

Key_blocks_used

Integer Global

Key_read_requests

Integer Global

Key_reads

Integer Global

Key_write_requests

Integer Global

Key_writes

Integer Global

Last_query_cost

Numeric Session

Last_query_partial_plans

Integer Session

Locked_connects

Integer Global

Max_execution_time_exceeded

Integer Both

Max_execution_time_set

Integer Both

Max_execution_time_set_failed

Integer Both

Max_used_connections

Integer Global

Max_used_connections_time

Datetime Global

mecab_charset

String Global

Mysqlx_address

String Global

Mysqlx_bytes_received

Integer Both

Mysqlx_bytes_sent

Integer Both

Mysqlx_connection_accept_errors

Integer Both

Mysqlx_connection_errors

Integer Both

Mysqlx_connections_accepted

Integer Global

Mysqlx_connections_closed

Integer Global

Mysqlx_connections_rejected

Integer Global

Mysqlx_crud_create_view

Integer Both

Mysqlx_crud_delete

Integer Both

Mysqlx_crud_drop_view

Integer Both

Mysqlx_crud_find

Integer Both

Mysqlx_crud_insert

Integer Both

Mysqlx_crud_modify_view

Integer Both

Mysqlx_crud_update

Integer Both

Mysqlx_errors_sent

Integer Both

Mysqlx_errors_unknown_message_type

Integer Both

Mysqlx_expect_close

Integer Both

Mysqlx_expect_open

Integer Both

Mysqlx_init_error

Integer Both

Mysqlx_notice_other_sent

Integer Both

Mysqlx_notice_warning_sent

Integer Both

Mysqlx_port

String Global

Mysqlx_rows_sent

Integer Both

Mysqlx_sessions

Integer Global

Mysqlx_sessions_accepted

Integer Global

Mysqlx_sessions_closed

Integer Global

Mysqlx_sessions_fatal_error

Integer Global

Mysqlx_sessions_killed

Integer Global

Mysqlx_sessions_rejected

Integer Global

Mysqlx_socket

String Global

Mysqlx_ssl_accept_renegotiates

Integer Global

Mysqlx_ssl_accepts

Integer Global

Mysqlx_ssl_active

Integer Both

Mysqlx_ssl_cipher

Integer Both

Mysqlx_ssl_cipher_list

Integer Both

Mysqlx_ssl_ctx_verify_depth

Integer Both

Mysqlx_ssl_ctx_verify_mode

Integer Both

Mysqlx_ssl_finished_accepts

Integer Global

Mysqlx_ssl_server_not_after

Integer Global

Mysqlx_ssl_server_not_before

Integer Global

Mysqlx_ssl_verify_depth

Integer Global

Mysqlx_ssl_verify_mode

Integer Global

Mysqlx_ssl_version

Integer Both

Mysqlx_stmt_create_collection

Integer Both

Mysqlx_stmt_create_collection_index

Integer Both

Mysqlx_stmt_disable_notices

Integer Both

Mysqlx_stmt_drop_collection

Integer Both

Mysqlx_stmt_drop_collection_index

Integer Both

Mysqlx_stmt_enable_notices

Integer Both

Mysqlx_stmt_ensure_collection

String Both

Mysqlx_stmt_execute_mysqlx

Integer Both

Mysqlx_stmt_execute_sql

Integer Both

Mysqlx_stmt_execute_xplugin

Integer Both

Mysqlx_stmt_kill_client

Integer Both

Mysqlx_stmt_list_clients

Integer Both

Mysqlx_stmt_list_notices

Integer Both

Mysqlx_stmt_list_objects

Integer Both

Mysqlx_stmt_ping

Integer Both

Mysqlx_worker_threads

Integer Global

Mysqlx_worker_threads_active

Integer Global

Ndb_api_adaptive_send_deferred_count

Integer Global

Ndb_api_adaptive_send_deferred_count_session

Integer Global

Ndb_api_adaptive_send_deferred_count_slave

Integer Global

Ndb_api_adaptive_send_forced_count

Integer Global

Ndb_api_adaptive_send_forced_count_session

Integer Global

Ndb_api_adaptive_send_forced_count_slave

Integer Global

Ndb_api_adaptive_send_unforced_count

Integer Global

Ndb_api_adaptive_send_unforced_count_session

Integer Global

Ndb_api_adaptive_send_unforced_count_slave

Integer Global

Ndb_api_bytes_received_count

Integer Global

Ndb_api_bytes_received_count_session

Integer Session

Ndb_api_bytes_received_count_slave

Integer Global

Ndb_api_bytes_sent_count

Integer Global

Ndb_api_bytes_sent_count_session

Integer Session

Ndb_api_bytes_sent_count_slave

Integer Global

Ndb_api_event_bytes_count

Integer Global

Ndb_api_event_bytes_count_injector

Integer Global

Ndb_api_event_data_count

Integer Global

Ndb_api_event_data_count_injector

Integer Global

Ndb_api_event_nondata_count

Integer Global

Ndb_api_event_nondata_count_injector

Integer Global

Ndb_api_pk_op_count

Integer Global

Ndb_api_pk_op_count_session

Integer Session

Ndb_api_pk_op_count_slave

Integer Global

Ndb_api_pruned_scan_count

Integer Global

Ndb_api_pruned_scan_count_session

Integer Session

Ndb_api_pruned_scan_count_slave

Integer Global

Ndb_api_range_scan_count

Integer Global

Ndb_api_range_scan_count_session

Integer Session

Ndb_api_range_scan_count_slave

Integer Global

Ndb_api_read_row_count

Integer Global

Ndb_api_read_row_count_session

Integer Session

Ndb_api_read_row_count_slave

Integer Global

Ndb_api_scan_batch_count

Integer Global

Ndb_api_scan_batch_count_session

Integer Session

Ndb_api_scan_batch_count_slave

Integer Global

Ndb_api_table_scan_count

Integer Global

Ndb_api_table_scan_count_session

Integer Session

Ndb_api_table_scan_count_slave

Integer Global

Ndb_api_trans_abort_count

Integer Global

Ndb_api_trans_abort_count_session

Integer Session

Ndb_api_trans_abort_count_slave

Integer Global

Ndb_api_trans_close_count

Integer Global

Ndb_api_trans_close_count_session

Integer Session

Ndb_api_trans_close_count_slave

Integer Global

Ndb_api_trans_commit_count

Integer Global

Ndb_api_trans_commit_count_session

Integer Session

Ndb_api_trans_commit_count_slave

Integer Global

Ndb_api_trans_local_read_row_count

Integer Global

Ndb_api_trans_local_read_row_count_session

Integer Session

Ndb_api_trans_local_read_row_count_slave

Integer Global

Ndb_api_trans_start_count

Integer Global

Ndb_api_trans_start_count_session

Integer Session

Ndb_api_trans_start_count_slave

Integer Global

Ndb_api_uk_op_count

Integer Global

Ndb_api_uk_op_count_session

Integer Session

Ndb_api_uk_op_count_slave

Integer Global

Ndb_api_wait_exec_complete_count

Integer Global

Ndb_api_wait_exec_complete_count_session

Integer Session

Ndb_api_wait_exec_complete_count_slave

Integer Global

Ndb_api_wait_meta_request_count

Integer Global

Ndb_api_wait_meta_request_count_session

Integer Session

Ndb_api_wait_meta_request_count_slave

Integer Global

Ndb_api_wait_nanos_count

Integer Global

Ndb_api_wait_nanos_count_session

Integer Session

Ndb_api_wait_nanos_count_slave

Integer Global

Ndb_api_wait_scan_result_count

Integer Global

Ndb_api_wait_scan_result_count_session

Integer Session

Ndb_api_wait_scan_result_count_slave

Integer Global

Ndb_cluster_node_id

Integer Global

Ndb_config_from_host

Integer Both

Ndb_config_from_port

Integer Both

Ndb_conflict_fn_epoch

Integer Global

Ndb_conflict_fn_epoch_trans

Integer Global

Ndb_conflict_fn_epoch2

Integer Global

Ndb_conflict_fn_epoch2_trans

Integer Global

Ndb_conflict_fn_max

Integer Global

Ndb_conflict_fn_max_del_win

Integer Global

Ndb_conflict_fn_old

Integer Global

Ndb_conflict_last_conflict_epoch

Integer Global

Ndb_conflict_last_stable_epoch

Integer Global

Ndb_conflict_reflected_op_discard_count

Integer Global

Ndb_conflict_reflected_op_prepare_count

Integer Global

Ndb_conflict_refresh_op_count

Integer Global

Ndb_conflict_trans_conflict_commit_count

Integer Global

Ndb_conflict_trans_detect_iter_count

Integer Global

Ndb_conflict_trans_reject_count

Integer Global

Ndb_conflict_trans_row_conflict_count

Integer Global

Ndb_conflict_trans_row_reject_count

Integer Global

Ndb_epoch_delete_delete_count

Integer Global

Ndb_execute_count

Integer Global

Ndb_last_commit_epoch_server

Integer Global

Ndb_last_commit_epoch_session

Integer Session

Ndb_cluster_node_id

Integer Global

Ndb_number_of_data_nodes

Integer Global

Ndb_pruned_scan_count

Integer Global

Ndb_pushed_queries_defined

Integer Global

Ndb_pushed_queries_dropped

Integer Global

Ndb_pushed_queries_executed

Integer Global

Ndb_pushed_reads

Integer Global

Ndb_scan_count

Integer Global

Ndb_slave_max_replicated_epoch

Integer Global

Not_flushed_delayed_rows

Integer Global

Ongoing_anonymous_gtid_violating_transaction_count

Integer Global

Ongoing_anonymous_transaction_count

Integer Global

Ongoing_automatic_gtid_violating_transaction_count

Integer Global

Open_files

Integer Global

Open_streams

Integer Global

Open_table_definitions

Integer Global

Open_tables

Integer Both

Opened_files

Integer Global

Opened_table_definitions

Integer Both

Opened_tables

Integer Both

Performance_schema_accounts_lost

Integer Global

Performance_schema_cond_classes_lost

Integer Global

Performance_schema_cond_instances_lost

Integer Global

Performance_schema_digest_lost

Integer Global

Performance_schema_file_classes_lost

Integer Global

Performance_schema_file_handles_lost

Integer Global

Performance_schema_file_instances_lost

Integer Global

Performance_schema_hosts_lost

Integer Global

Performance_schema_index_stat_lost

Integer Global

Performance_schema_locker_lost

Integer Global

Performance_schema_memory_classes_lost

Integer Global

Performance_schema_metadata_lock_lost

Integer Global

Performance_schema_mutex_classes_lost

Integer Global

Performance_schema_mutex_instances_lost

Integer Global

Performance_schema_nested_statement_lost

Integer Global

Performance_schema_prepared_statements_lost

Integer Global

Performance_schema_program_lost

Integer Global

Performance_schema_rwlock_classes_lost

Integer Global

Performance_schema_rwlock_instances_lost

Integer Global

Performance_schema_session_connect_attrs_lost

Integer Global

Performance_schema_socket_classes_lost

Integer Global

Performance_schema_socket_instances_lost

Integer Global

Performance_schema_stage_classes_lost

Integer Global

Performance_schema_statement_classes_lost

Integer Global

Performance_schema_table_handles_lost

Integer Global

Performance_schema_table_instances_lost

Integer Global

Performance_schema_table_lock_stat_lost

Integer Global

Performance_schema_thread_classes_lost

Integer Global

Performance_schema_thread_instances_lost

Integer Global

Performance_schema_users_lost

Integer Global

Prepared_stmt_count

Integer Global

Qcache_free_blocks

Integer Global

Qcache_free_memory

Integer Global

Qcache_hits

Integer Global

Qcache_inserts

Integer Global

Qcache_lowmem_prunes

Integer Global

Qcache_not_cached

Integer Global

Qcache_queries_in_cache

Integer Global

Qcache_total_blocks

Integer Global

Queries

Integer Both

Questions

Integer Both

Rewriter_number_loaded_rules

Integer Global

Rewriter_number_reloads

Integer Global

Rewriter_number_rewritten_queries

Integer Global

Rewriter_reload_error

Boolean Global

Rpl_semi_sync_master_clients

Integer Global

Rpl_semi_sync_master_net_avg_wait_time

Integer Global

Rpl_semi_sync_master_net_wait_time

Integer Global

Rpl_semi_sync_master_net_waits

Integer Global

Rpl_semi_sync_master_no_times

Integer Global

Rpl_semi_sync_master_no_tx

Integer Global

Rpl_semi_sync_master_status

Boolean Global

Rpl_semi_sync_master_timefunc_failures

Integer Global

Rpl_semi_sync_master_tx_avg_wait_time

Integer Global

Rpl_semi_sync_master_tx_wait_time

Integer Global

Rpl_semi_sync_master_tx_waits

Integer Global

Rpl_semi_sync_master_wait_pos_backtraverse

Integer Global

Rpl_semi_sync_master_wait_sessions

Integer Global

Rpl_semi_sync_master_yes_tx

Integer Global

Rpl_semi_sync_slave_status

Boolean Global

Rsa_public_key

String Global

Select_full_join

Integer Both

Select_full_range_join

Integer Both

Select_range

Integer Both

Select_range_check

Integer Both

Select_scan

Integer Both

Slave_heartbeat_period

Numeric Global

Slave_last_heartbeat

Datetime Global

Slave_open_temp_tables

Integer Global

Slave_received_heartbeats

Integer Global

Slave_retried_transactions

Integer Global

Slave_rows_last_search_algorithm_used

String Global

Slave_running

String Global

Slow_launch_threads

Integer Both

Slow_queries

Integer Both

Sort_merge_passes

Integer Both

Sort_range

Integer Both

Sort_rows

Integer Both

Sort_scan

Integer Both

Ssl_accept_renegotiates

Integer Global

Ssl_accepts

Integer Global

Ssl_callback_cache_hits

Integer Global

Ssl_cipher

String Both

Ssl_cipher_list

String Both

Ssl_client_connects

Integer Global

Ssl_connect_renegotiates

Integer Global

Ssl_ctx_verify_depth

Integer Global

Ssl_ctx_verify_mode

Integer Global

Ssl_default_timeout

Integer Both

Ssl_finished_accepts

Integer Global

Ssl_finished_connects

Integer Global

Ssl_server_not_after

Integer Both

Ssl_server_not_before

Integer Both

Ssl_session_cache_hits

Integer Global

Ssl_session_cache_misses

Integer Global

Ssl_session_cache_mode

String Global

Ssl_session_cache_overflows

Integer Global

Ssl_session_cache_size

Integer Global

Ssl_session_cache_timeouts

Integer Global

Ssl_sessions_reused

Integer Session

Ssl_used_session_cache_entries

Integer Global

Ssl_verify_depth

Integer Both

Ssl_verify_mode

Integer Both

Ssl_version

String Both

Table_locks_immediate

Integer Global

Table_locks_waited

Integer Global

Table_open_cache_hits

Integer Both

Table_open_cache_misses

Integer Both

Table_open_cache_overflows

Integer Both

Tc_log_max_pages_used

Integer Global

Tc_log_page_size

Integer Global

Tc_log_page_waits

Integer Global

Threads_cached

Integer Global

Threads_connected

Integer Global

Threads_created

Integer Global

Threads_running

Integer Global

Uptime

Integer Global

Uptime_since_flush_status

Integer Global

validate_password_dictionary_file_last_parsed

Datetime Global

validate_password_dictionary_file_words_count

Integer Global

 File: manual.info.tmp, Node: server-options, Next: server-system-variables, Prev: server-status-variable-reference, Up: mysqld-server

5.1.6 Server Command Options

When you start the note 'mysqld': mysqld. server, you can specify program options using any of the methods described in note program-options::. The most common methods are to provide options in an option file or on the command line. However, in most cases it is desirable to make sure that the server uses the same options each time it runs. The best way to ensure this is to list them in an option file. See *note option-files::. That section also describes option file format and syntax.

note 'mysqld': mysqld. reads options from the '[mysqld]' and '[server]' groups. note 'mysqld_safe': mysqld-safe. reads options from the '[mysqld]', '[server]', '[mysqld_safe]', and '[safe_mysqld]' groups. *note 'mysql.server': mysql-server. reads options from the '[mysqld]' and '[mysql.server]' groups.

An embedded MySQL server usually reads options from the '[server]', '[embedded]', and '[XXXXX_SERVER]' groups, where XXXXX is the name of the application into which the server is embedded.

*note 'mysqld': mysqld. accepts many command options. For a brief summary, execute this command:

 mysqld --help

To see the full list, use this command:

 mysqld --verbose --help

Some of the items in the list are actually system variables that can be set at server startup. These can be displayed at runtime using the note 'SHOW VARIABLES': show-variables. statement. Some items displayed by the preceding note 'mysqld': mysqld. command do not appear in *note 'SHOW VARIABLES': show-variables. output; this is because they are options only and not system variables.

The following list shows some of the most common server options. Additional options are described in other sections:

Some options control the size of buffers or caches. For a given buffer, the server might need to allocate internal data structures. These structures typically are allocated from the total memory allocated to the buffer, and the amount of space required might be platform dependent. This means that when you assign a value to an option that controls a buffer size, the amount of space actually available might differ from the value assigned. In some cases, the amount might be less than the value assigned. It is also possible that the server adjusts a value upward. For example, if you assign a value of 0 to an option for which the minimal value is 1024, the server sets the value to 1024.

Values for buffer sizes, lengths, and stack sizes are given in bytes unless otherwise specified.

Some options take file name values. Unless otherwise specified, the default file location is the data directory if the value is a relative path name. To specify the location explicitly, use an absolute path name. Suppose that the data directory is '/var/mysql/data'. If a file-valued option is given as a relative path name, it is located under '/var/mysql/data'. If the value is an absolute path name, its location is as given by the path name.

You can also set the values of server system variables at server startup by using variable names as options. To assign a value to a server system variable, use an option of the form '--VAR_NAME=VALUE'. For example, '--sort_buffer_size=384M' sets the 'sort_buffer_size' variable to a value of 384MB.

When you assign a value to a variable, MySQL might automatically correct the value to stay within a given range, or adjust the value to the closest permissible value if only certain values are permitted.

To restrict the maximum value to which a system variable can be set at runtime with the *note 'SET': set-variable. statement, specify this maximum by using an option of the form '--maximum-VAR_NAME=VALUE' at server startup.

You can change the values of most system variables at runtime with the note 'SET': set-variable. statement. See note set-variable::.

note server-system-variables::, provides a full description for all variables, and additional information for setting them at server startup and runtime. For information on changing system variables, see note server-configuration::.

 File: manual.info.tmp, Node: server-system-variables, Next: using-system-variables, Prev: server-options, Up: mysqld-server

5.1.7 Server System Variables

The MySQL server maintains many system variables that affect its operation. Most 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 *note 'SET': set-variable. statement, which enables you to modify operation of the server without having to stop and restart it. Some variables are read-only, and their values are determined by the system environment, by how MySQL is installed on the system, or possibly by the options used to compile MySQL. Most system variables have a default value, but there are exceptions, including read-only variables. You can also use system variable values in expressions.

At runtime, setting a global system variable value requires the 'SUPER' privilege. Setting a session system variable value normally requires no special privileges and can be done by any user, although there are exceptions. For more information, see *note system-variable-privileges::

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

This section provides a description of each system variable. For a system variable summary table, see note server-system-variable-reference::. For more information about manipulation of system variables, see note using-system-variables::.

For additional system variable information, see these sections:

Note:

Some of the following variable descriptions refer to 'enabling' or 'disabling' a variable. These variables can be enabled with the note 'SET': set-variable. statement by setting them to 'ON' or '1', or disabled by setting them to 'OFF' or '0'. Boolean variables can be set at startup to the values 'ON', 'TRUE', 'OFF', and 'FALSE' (not case-sensitive), as well as '1' and '0'. See note option-modifiers::.

Some system variables control the size of buffers or caches. For a given buffer, the server might need to allocate internal data structures. These structures typically are allocated from the total memory allocated to the buffer, and the amount of space required might be platform dependent. This means that when you assign a value to a system variable that controls a buffer size, the amount of space actually available might differ from the value assigned. In some cases, the amount might be less than the value assigned. It is also possible for the server to adjust a value upward. For example, if you assign a value of 0 to a variable for which the minimal value is 1024, the server sets the value to 1024.

Values for buffer sizes, lengths, and stack sizes are given in bytes unless otherwise specified.

Note:

Some system variable descriptions include a block size, in which case a value that is not an integer multiple of the stated block size is rounded down to the next lower multiple of the block size before being stored by the server, that is to 'FLOOR(VALUE)' '* BLOCK_SIZE'.

Example: Suppose that the block size for a given variable is given as 4096, and you set the value of the variable to 100000 (we assume that the variable's maximum value is greater than this number). Since 100000 / 4096 = 24.4140625, the server automatically lowers the value to 98304 (24 * 4096) before storing it.

In some cases, the stated maximum for a variable is the maximum allowed by the MySQL parser, but is not an exact multiple of the block size. In such cases, the effective maximum is the next lower multiple of the block size.

Example: A system variable's maxmum value is shown as 4294967295 (2^32-1), and its block size is 1024. 4294967295 / 1024 = 4194303.9990234375, so if you set this variable to its stated maximum, the value actually stored is 4194303 * 1024 = 4294966272.

Some system variables take file name values. Unless otherwise specified, the default file location is the data directory if the value is a relative path name. To specify the location explicitly, use an absolute path name. Suppose that the data directory is '/var/mysql/data'. If a file-valued variable is given as a relative path name, it is located under '/var/mysql/data'. If the value is an absolute path name, its location is as given by the path name.

 File: manual.info.tmp, Node: using-system-variables, Next: server-status-variables, Prev: server-system-variables, Up: mysqld-server

5.1.8 Using System Variables

The MySQL server maintains many system variables that configure its operation. note server-system-variables::, describes the meaning of these variables. 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 while the server is running by means of the note 'SET': set-variable. statement, which enables you to modify operation of the server without having to stop and restart it. You can also use system variable values in expressions.

Many system variables are built in. System variables implemented by a server plugin are exposed when the plugin is installed and have names that begin with the plugin name. For example, the 'audit_log' plugin implements a system variable named 'audit_log_policy'.

There are two scopes in which system variables exist. Global variables affect the overall operation of the server. Session variables affect its operation for individual client connections. A given system variable can have both a global and a session value. Global and session system variables are related as follows:

System variable values can be set globally at server startup by using options on the command line or in an option file. At startup, the syntax for system variables is the same as for command options, so within variable names, dashes and underscores may be used interchangeably. For example, '--general_log=ON' and '--general-log=ON' are equivalent.

When you use a startup option to set a variable that takes a numeric value, the value can be given with a suffix of 'K', 'M', or 'G' (either uppercase or lowercase) to indicate a multiplier of 1024, 1024^2 or 1024^3; that is, units of kilobytes, megabytes, or gigabytes, respectively. Thus, the following command starts the server with an 'InnoDB' log file size of 16 megabytes and a maximum packet size of one gigabyte:

 mysqld --innodb-log-file-size=16M --max-allowed-packet=1G

Within an option file, those variables are set like this:

 [mysqld]
 innodb_log_file_size=16M
 max_allowed_packet=1G

The lettercase of suffix letters does not matter; '16M' and '16m' are equivalent, as are '1G' and '1g'.

To restrict the maximum value to which a system variable can be set at runtime with the *note 'SET': set-variable. statement, specify this maximum by using an option of the form '--maximum-VAR_NAME=VALUE' at server startup. For example, to prevent the value of 'innodb_log_file_size' from being increased to more than 32MB at runtime, use the option '--maximum-innodb-log-file-size=32M'.

Many system variables are dynamic and can be changed at runtime by using the note 'SET': set-variable. statement. For a list, see note dynamic-system-variables::. To change a system variable with *note 'SET': set-variable, refer to it by name, optionally preceded by a modifier. At runtime, system variable names must be written using underscores, not dashes. The following examples briefly illustrate this syntax:

For complete details about note 'SET': set-variable. syntax, see note set-variable::. For a description of the privilege requirements for setting system variables, see *note system-variable-privileges::

Suffixes for specifying a value multiplier can be used when setting a variable at server startup, but not to set the value with note 'SET': set-variable. at runtime. On the other hand, with note 'SET': set-variable. you can assign a variable's value using an expression, which is not true when you set a variable at server startup. For example, the first of the following lines is legal at server startup, but the second is not:

 $> mysql --max_allowed_packet=16M
 $> mysql --max_allowed_packet=16*1024*1024

Conversely, the second of the following lines is legal at runtime, but the first is not:

 mysql> SET GLOBAL max_allowed_packet=16M;
 mysql> SET GLOBAL max_allowed_packet=16*1024*1024;

To display system variable names and values, use the *note 'SHOW VARIABLES': show-variables. statement:

 mysql> SHOW VARIABLES;
 +---------------------------------+-----------------------------------+
 | Variable_name                   | Value                             |
 +---------------------------------+-----------------------------------+
 | auto_increment_increment        | 1                                 |
 | auto_increment_offset           | 1                                 |
 | automatic_sp_privileges         | ON                                |
 | back_log                        | 50                                |
 | basedir                         | /home/mysql/                      |
 | binlog_cache_size               | 32768                             |
 | bulk_insert_buffer_size         | 8388608                           |
 | character_set_client            | utf8                              |
 | character_set_connection        | utf8                              |
 | character_set_database          | latin1                            |
 | character_set_filesystem        | binary                            |
 | character_set_results           | utf8                              |
 | character_set_server            | latin1                            |
 | character_set_system            | utf8                              |
 | character_sets_dir              | /home/mysql/share/mysql/charsets/ |
 | collation_connection            | utf8_general_ci                   |
 | collation_database              | latin1_swedish_ci                 |
 | collation_server                | latin1_swedish_ci                 |
 ...
 | innodb_autoextend_increment     | 8                                 |
 | innodb_buffer_pool_size         | 8388608                           |
 | innodb_checksums                | ON                                |
 | innodb_commit_concurrency       | 0                                 |
 | innodb_concurrency_tickets      | 500                               |
 | innodb_data_file_path           | ibdata1:10M:autoextend            |
 | innodb_data_home_dir            |                                   |
 ...
 | version                         | 5.7.18-log                        |
 | version_comment                 | Source distribution               |
 | version_compile_machine         | i686                              |
 | version_compile_os              | suse-linux                        |
 | wait_timeout                    | 28800                             |
 +---------------------------------+-----------------------------------+

With a 'LIKE' clause, the statement displays only those variables that match the pattern. To obtain a specific variable name, use a 'LIKE' clause as shown:

 SHOW VARIABLES LIKE 'max_join_size';
 SHOW SESSION VARIABLES LIKE 'max_join_size';

To get a list of variables whose name match a pattern, use the '%' wildcard character in a 'LIKE' clause:

 SHOW VARIABLES LIKE '%size%';
 SHOW GLOBAL VARIABLES LIKE '%size%';

Wildcard characters can be used in any position within the pattern to be matched. Strictly speaking, because '_' is a wildcard that matches any single character, you should escape it as '_' to match it literally. In practice, this is rarely necessary.

For *note 'SHOW VARIABLES': show-variables, if you specify neither 'GLOBAL' nor 'SESSION', MySQL returns 'SESSION' values.

The reason for requiring the 'GLOBAL' keyword when setting 'GLOBAL'-only variables but not when retrieving them is to prevent problems in the future:

 File: manual.info.tmp, Node: system-variable-privileges, Next: dynamic-system-variables, Prev: using-system-variables, Up: using-system-variables

5.1.8.1 System Variable Privileges ..................................

A system variable can have a global value that affects server operation as a whole, a session value that affects only the current session, or both. To modify system variable runtime values, use the note 'SET': set-variable. statement. See note set-variable::. This section describes the privileges required to assign values to system variables at runtime.

Setting a global system variable runtime value requires the 'SUPER' privilege.

To set a session system variable runtime value, use the *note 'SET SESSION': set-variable. statement. In contrast to setting global runtime values, setting session runtime values normally requires no special privileges and can be done by any user to affect the current session. For some system variables, setting the session value may have effects outside the current session and thus is a restricted operation that can be done only by users who have the 'SUPER' privilege. If a session system variable is restricted in this way, the variable description indicates that restriction. Examples include 'binlog_format' and 'sql_log_bin'. Setting the session value of these variables affects binary logging for the current session, but may also have wider implications for the integrity of server replication and backups.

 File: manual.info.tmp, Node: dynamic-system-variables, Next: structured-system-variables, Prev: system-variable-privileges, Up: using-system-variables

5.1.8.2 Dynamic System Variables ................................

Many server system variables are dynamic and can be set at runtime. See note set-variable::. For a description of the privilege requirements for setting system variables, see note system-variable-privileges::

The following table lists all dynamic system variables applicable within 'mysqld'.

The table lists each variable's data type and scope. The last column indicates whether the scope for each variable is Global, Session, or both. Please see the corresponding item descriptions for details on setting and using the variables. Where appropriate, direct links to further information about the items are provided.

Variables that have a type of 'string' take a string value. Variables that have a type of 'numeric' take a numeric value. Variables that have a type of 'boolean' can be set to 0, 1, 'ON' or 'OFF'. Variables that are marked as 'enumeration' normally should be set to one of the available values for the variable, but can also be set to the number that corresponds to the desired enumeration value. For enumerated system variables, the first enumeration value corresponds to 0. This differs from the *note 'ENUM': enum. data type used for table columns, for which the first enumeration value corresponds to 1.

Dynamic System Variable Summary

Variable Name Variable Variable Type Scope

audit_log_connection_policy

Enumeration Global

audit_log_disable

Boolean Global

audit_log_exclude_accounts

String Global

audit_log_flush

Boolean Global

audit_log_format_unix_timestamp

Boolean Global

audit_log_include_accounts

String Global

audit_log_read_buffer_size

Integer Varies

audit_log_rotate_on_size

Integer Global

audit_log_statement_policy

Enumeration Global

authentication_ldap_sasl_auth_method_name

String Global

authentication_ldap_sasl_bind_base_dn

String Global

authentication_ldap_sasl_bind_root_dn

String Global

authentication_ldap_sasl_bind_root_pwd

String Global

authentication_ldap_sasl_ca_path

String Global

authentication_ldap_sasl_group_search_attr

String Global

authentication_ldap_sasl_group_search_filter

String Global

authentication_ldap_sasl_init_pool_size

Integer Global

authentication_ldap_sasl_log_status

Integer Global

authentication_ldap_sasl_max_pool_size

Integer Global

authentication_ldap_sasl_server_host

String Global

authentication_ldap_sasl_server_port

Integer Global

authentication_ldap_sasl_tls

Boolean Global

authentication_ldap_sasl_user_search_attr

String Global

authentication_ldap_simple_auth_method_name

String Global

authentication_ldap_simple_bind_base_dn

String Global

authentication_ldap_simple_bind_root_dn

String Global

authentication_ldap_simple_bind_root_pwd

String Global

authentication_ldap_simple_ca_path

String Global

authentication_ldap_simple_group_search_attr

String Global

authentication_ldap_simple_group_search_filter

String Global

authentication_ldap_simple_init_pool_size

Integer Global

authentication_ldap_simple_log_status

Integer Global

authentication_ldap_simple_max_pool_size

Integer Global

authentication_ldap_simple_server_host

String Global

authentication_ldap_simple_server_port

Integer Global

authentication_ldap_simple_tls

Boolean Global

authentication_ldap_simple_user_search_attr

String Global

auto_increment_increment

Integer Both

auto_increment_offset

Integer Both

autocommit

Boolean Both

automatic_sp_privileges

Boolean Global

avoid_temporal_upgrade

Boolean Global

big_tables

Boolean Both

binlog_cache_size

Integer Global

binlog_checksum

String Global

binlog_direct_non_transactional_updates

Boolean Both

binlog_error_action

Enumeration Global

binlog_format

Enumeration Both

binlog_group_commit_sync_delay

Integer Global

binlog_group_commit_sync_no_delay_count

Integer Global

binlog_max_flush_queue_time

Integer Global

binlog_order_commits

Boolean Global

binlog_row_image

Enumeration Both

binlog_rows_query_log_events

Boolean Both

binlog_stmt_cache_size

Integer Global

binlog_transaction_dependency_history_size

Integer Global

binlog_transaction_dependency_tracking

Enumeration Global

block_encryption_mode

String Both

bulk_insert_buffer_size

Integer Both

character_set_client

String Both

character_set_connection

String Both

character_set_database

String Both

character_set_filesystem

String Both

character_set_results

String Both

character_set_server

String Both

check_proxy_users

Boolean Global

collation_connection

String Both

collation_database

String Both

collation_server

String Both

completion_type

Enumeration Both

concurrent_insert

Enumeration Global

connect_timeout

Integer Global

connection_control_failed_connections_threshold

Integer Global

connection_control_max_connection_delay

Integer Global

connection_control_min_connection_delay

Integer Global

debug

String Both

debug_sync

String Session

default_password_lifetime

Integer Global

default_storage_engine

Enumeration Both

default_tmp_storage_engine

Enumeration Both

default_week_format

Integer Both

delay_key_write

Enumeration Global

delayed_insert_limit

Integer Global

delayed_insert_timeout

Integer Global

delayed_queue_size

Integer Global

div_precision_increment

Integer Both

end_markers_in_json

Boolean Both

enforce_gtid_consistency

Enumeration Global

eq_range_index_dive_limit

Integer Both

event_scheduler

Enumeration Global

expire_logs_days

Integer Global

explicit_defaults_for_timestamp

Boolean Both

flush

Boolean Global

flush_time

Integer Global

foreign_key_checks

Boolean Both

ft_boolean_syntax

String Global

general_log

Boolean Global

general_log_file

File name Global

group_concat_max_len

Integer Both

group_replication_allow_local_disjoint_gtids_join

Boolean Global

group_replication_allow_local_lower_version_join

Boolean Global

group_replication_auto_increment_increment

Integer Global

group_replication_bootstrap_group

Boolean Global

group_replication_components_stop_timeout

Integer Global

group_replication_compression_threshold

Integer Global

group_replication_enforce_update_everywhere_checks

Boolean Global

group_replication_exit_state_action

Enumeration Global

group_replication_flow_control_applier_threshold

Integer Global

group_replication_flow_control_certifier_threshold

Integer Global

group_replication_flow_control_mode

Enumeration Global

group_replication_force_members

String Global

group_replication_group_name

String Global

group_replication_group_seeds

String Global

group_replication_gtid_assignment_block_size

Integer Global

group_replication_ip_whitelist

String Global

group_replication_local_address

String Global

group_replication_member_weight

Integer Global

group_replication_poll_spin_loops

Integer Global

group_replication_recovery_complete_at

Enumeration Global

group_replication_recovery_reconnect_interval

Integer Global

group_replication_recovery_retry_count

Integer Global

group_replication_recovery_ssl_ca

String Global

group_replication_recovery_ssl_capath

String Global

group_replication_recovery_ssl_cert

String Global

group_replication_recovery_ssl_cipher

String Global

group_replication_recovery_ssl_crl

File name Global

group_replication_recovery_ssl_crlpath

Directory name Global

group_replication_recovery_ssl_key

String Global

group_replication_recovery_ssl_verify_server_cert

Boolean Global

group_replication_recovery_use_ssl

Boolean Global

group_replication_single_primary_mode

Boolean Global

group_replication_ssl_mode

Enumeration Global

group_replication_start_on_boot

Boolean Global

group_replication_transaction_size_limit

Integer Global

group_replication_unreachable_majority_timeout

Integer Global

gtid_executed_compression_period

Integer Global

gtid_mode

Enumeration Global

gtid_next

Enumeration Session

gtid_purged

String Global

host_cache_size

Integer Global

identity

Integer Session

init_connect

String Global

init_slave

String Global

innodb_adaptive_flushing

Boolean Global

innodb_adaptive_flushing_lwm

Integer Global

innodb_adaptive_hash_index

Boolean Global

innodb_adaptive_max_sleep_delay

Integer Global

innodb_api_bk_commit_interval

Integer Global

innodb_api_trx_level

Integer Global

innodb_autoextend_increment

Integer Global

innodb_background_drop_list_empty

Boolean Global

innodb_buffer_pool_dump_at_shutdown

Boolean Global

innodb_buffer_pool_dump_now

Boolean Global

innodb_buffer_pool_dump_pct

Integer Global

innodb_buffer_pool_filename

File name Global

innodb_buffer_pool_load_abort

Boolean Global

innodb_buffer_pool_load_now

Boolean Global

innodb_buffer_pool_size

Integer Global

innodb_change_buffer_max_size

Integer Global

innodb_change_buffering

Enumeration Global

innodb_change_buffering_debug

Integer Global

innodb_checksum_algorithm

Enumeration Global

innodb_cmp_per_index_enabled

Boolean Global

innodb_commit_concurrency

Integer Global

innodb_compress_debug

Enumeration Global

innodb_compression_failure_threshold_pct

Integer Global

innodb_compression_level

Integer Global

innodb_compression_pad_pct_max

Integer Global

innodb_concurrency_tickets

Integer Global

innodb_deadlock_detect

Boolean Global

innodb_default_row_format

Enumeration Global

innodb_disable_resize_buffer_pool_debug

Boolean Global

innodb_disable_sort_file_cache

Boolean Global

innodb_fast_shutdown

Integer Global

innodb_fil_make_page_dirty_debug

Integer Global

innodb_file_format

String Global

innodb_file_format_max

String Global

innodb_file_per_table

Boolean Global

innodb_fill_factor

Integer Global

innodb_flush_log_at_timeout

Integer Global

innodb_flush_log_at_trx_commit

Enumeration Global

innodb_flush_neighbors

Enumeration Global

innodb_flush_sync

Boolean Global

innodb_flushing_avg_loops

Integer Global

innodb_ft_aux_table

String Global

innodb_ft_enable_diag_print

Boolean Global

innodb_ft_enable_stopword

Boolean Both

innodb_ft_num_word_optimize

Integer Global

innodb_ft_result_cache_limit

Integer Global

innodb_ft_server_stopword_table

String Global

innodb_ft_user_stopword_table

String Both

innodb_io_capacity

Integer Global

innodb_io_capacity_max

Integer Global

innodb_large_prefix

Boolean Global

innodb_limit_optimistic_insert_debug

Integer Global

innodb_lock_wait_timeout

Integer Both

innodb_log_checkpoint_now

Boolean Global

innodb_log_checksums

Boolean Global

innodb_log_compressed_pages

Boolean Global

innodb_log_write_ahead_size

Integer Global

innodb_lru_scan_depth

Integer Global

innodb_max_dirty_pages_pct

Numeric Global

innodb_max_dirty_pages_pct_lwm

Numeric Global

innodb_max_purge_lag

Integer Global

innodb_max_purge_lag_delay

Integer Global

innodb_max_undo_log_size

Integer Global

innodb_merge_threshold_set_all_debug

Integer Global

innodb_monitor_disable

String Global

innodb_monitor_enable

String Global

innodb_monitor_reset

Enumeration Global

innodb_monitor_reset_all

Enumeration Global

innodb_old_blocks_pct

Integer Global

innodb_old_blocks_time

Integer Global

innodb_online_alter_log_max_size

Integer Global

innodb_optimize_fulltext_only

Boolean Global

innodb_print_all_deadlocks

Boolean Global

innodb_purge_batch_size

Integer Global

innodb_purge_rseg_truncate_frequency

Integer Global

innodb_random_read_ahead

Boolean Global

innodb_read_ahead_threshold

Integer Global

innodb_replication_delay

Integer Global

innodb_rollback_segments

Integer Global

innodb_saved_page_number_debug

Integer Global

innodb_spin_wait_delay

Integer Global

innodb_stats_auto_recalc

Boolean Global

innodb_stats_include_delete_marked

Boolean Global

innodb_stats_method

Enumeration Global

innodb_stats_on_metadata

Boolean Global

innodb_stats_persistent

Boolean Global

innodb_stats_persistent_sample_pages

Integer Global

innodb_stats_sample_pages

Integer Global

innodb_stats_transient_sample_pages

Integer Global

innodb_status_output

Boolean Global

innodb_status_output_locks

Boolean Global

innodb_strict_mode

Boolean Both

innodb_support_xa

Boolean Both

innodb_sync_spin_loops

Integer Global

innodb_table_locks

Boolean Both

innodb_thread_concurrency

Integer Global

innodb_thread_sleep_delay

Integer Global

innodb_tmpdir

Directory name Both

innodb_trx_purge_view_update_only_debug

Boolean Global

innodb_trx_rseg_n_slots_debug

Integer Global

innodb_undo_log_truncate

Boolean Global

innodb_undo_logs

Integer Global

insert_id

Integer Session

interactive_timeout

Integer Both

internal_tmp_disk_storage_engine

Enumeration Global

join_buffer_size

Integer Both

keep_files_on_create

Boolean Both

key_buffer_size

Integer Global

key_cache_age_threshold

Integer Global

key_cache_block_size

Integer Global

key_cache_division_limit

Integer Global

keyring_aws_cmk_id

String Global

keyring_aws_region

Enumeration Global

keyring_encrypted_file_data

File name Global

keyring_encrypted_file_password

String Global

keyring_file_data

File name Global

keyring_okv_conf_dir

Directory name Global

keyring_operations

Boolean Global

last_insert_id

Integer Session

lc_messages

String Both

lc_time_names

String Both

local_infile

Boolean Global

lock_wait_timeout

Integer Both

log_bin_trust_function_creators

Boolean Global

log_bin_use_v1_row_events

Boolean Global

log_builtin_as_identified_by_password

Boolean Global

log_error_verbosity

Integer Global

log_output

Set Global

log_queries_not_using_indexes

Boolean Global

log_slow_admin_statements

Boolean Global

log_slow_slave_statements

Boolean Global

log_statements_unsafe_for_binlog

Boolean Global

log_syslog

Boolean Global

log_syslog_facility

String Global

log_syslog_include_pid

Boolean Global

log_syslog_tag

String Global

log_throttle_queries_not_using_indexes

Integer Global

log_timestamps

Enumeration Global

log_warnings

Integer Global

long_query_time

Numeric Both

low_priority_updates

Boolean Both

master_info_repository

String Global

master_verify_checksum

Boolean Global

max_allowed_packet

Integer Both

max_binlog_cache_size

Integer Global

max_binlog_size

Integer Global

max_binlog_stmt_cache_size

Integer Global

max_connect_errors

Integer Global

max_connections

Integer Global

max_delayed_threads

Integer Both

max_error_count

Integer Both

max_execution_time

Integer Both

max_heap_table_size

Integer Both

max_insert_delayed_threads

Integer Both

max_join_size

Integer Both

max_length_for_sort_data

Integer Both

max_points_in_geometry

Integer Both

max_prepared_stmt_count

Integer Global

max_relay_log_size

Integer Global

max_seeks_for_key

Integer Both

max_sort_length

Integer Both

max_sp_recursion_depth

Integer Both

max_tmp_tables

Integer Both

max_user_connections

Integer Both

max_write_lock_count

Integer Global

min_examined_row_limit

Integer Both

multi_range_count

Integer Both

myisam_data_pointer_size

Integer Global

myisam_max_sort_file_size

Integer Global

myisam_repair_threads

Integer Both

myisam_sort_buffer_size

Integer Both

myisam_stats_method

Enumeration Both

myisam_use_mmap

Boolean Global

mysql_firewall_mode

Boolean Global

mysql_firewall_trace

Boolean Global

mysql_native_password_proxy_users

Boolean Global

mysqlx_connect_timeout

Integer Global

mysqlx_idle_worker_thread_timeout

Integer Global

mysqlx_max_allowed_packet

Integer Global

mysqlx_max_connections

Integer Global

mysqlx_min_worker_threads

Integer Global

ndb_allow_copying_alter_table

Boolean Both

ndb_autoincrement_prefetch_sz

Integer Both

ndb_batch_size

Integer Both

ndb_blob_read_batch_bytes

Integer Both

ndb_blob_write_batch_bytes

Integer Both

ndb_cache_check_time

Integer Global

ndb_clear_apply_status

Boolean Global

ndb_data_node_neighbour

Integer Global

ndb_default_column_format

Enumeration Global

ndb_default_column_format

Enumeration Global

ndb_deferred_constraints

Integer Both

ndb_deferred_constraints

Integer Both

ndb_distribution

Enumeration Global

ndb_distribution

Enumeration Global

ndb_eventbuffer_free_percent

Integer Global

ndb_eventbuffer_max_alloc

Integer Global

ndb_extra_logging

Integer Global

ndb_force_send

Boolean Both

ndb_fully_replicated

Boolean Both

ndb_index_stat_enable

Boolean Both

ndb_index_stat_option

String Both

ndb_join_pushdown

Boolean Both

ndb_log_binlog_index

Boolean Global

ndb_log_empty_epochs

Boolean Global

ndb_log_empty_epochs

Boolean Global

ndb_log_empty_update

Boolean Global

ndb_log_empty_update

Boolean Global

ndb_log_exclusive_reads

Boolean Both

ndb_log_exclusive_reads

Boolean Both

ndb_log_update_as_write

Boolean Global

ndb_log_update_minimal

Boolean Global

ndb_log_updated_only

Boolean Global

ndb_optimization_delay

Integer Global

ndb_read_backup

Boolean Global

ndb_recv_thread_activation_threshold

Integer Global

ndb_recv_thread_cpu_mask

Bitmap Global

ndb_report_thresh_binlog_epoch_slip

Integer Global

ndb_report_thresh_binlog_mem_usage

Integer Global

ndb_row_checksum

Integer Both

ndb_show_foreign_key_mock_tables

Boolean Global

ndb_slave_conflict_role

Enumeration Global

ndb_table_no_logging

Boolean Session

ndb_table_temporary

Boolean Session

ndb_use_exact_count

Boolean Both

ndb_use_transactions

Boolean Both

ndbinfo_max_bytes

Integer Both

ndbinfo_max_rows

Integer Both

ndbinfo_offline

Boolean Global

ndbinfo_show_hidden

Boolean Both

net_buffer_length

Integer Both

net_read_timeout

Integer Both

net_retry_count

Integer Both

net_write_timeout

Integer Both

new

Boolean Both

offline_mode

Boolean Global

old_alter_table

Boolean Both

old_passwords

Enumeration Both

optimizer_prune_level

Integer Both

optimizer_search_depth

Integer Both

optimizer_switch

Set Both

optimizer_trace

String Both

optimizer_trace_features

String Both

optimizer_trace_limit

Integer Both

optimizer_trace_max_mem_size

Integer Both

optimizer_trace_offset

Integer Both

parser_max_mem_size

Integer Both

performance_schema_show_processlist

Boolean Global

preload_buffer_size

Integer Both

profiling

Boolean Both

profiling_history_size

Integer Both

pseudo_slave_mode

Boolean Session

pseudo_thread_id

Integer Session

query_alloc_block_size

Integer Both

query_cache_limit

Integer Global

query_cache_min_res_unit

Integer Global

query_cache_size

Integer Global

query_cache_type

Enumeration Both

query_cache_wlock_invalidate

Boolean Both

query_prealloc_size

Integer Both

rand_seed1

Integer Session

rand_seed2

Integer Session

range_alloc_block_size

Integer Both

range_optimizer_max_mem_size

Integer Both

rbr_exec_mode

Enumeration Session

read_buffer_size

Integer Both

read_only

Boolean Global

read_rnd_buffer_size

Integer Both

relay_log_info_repository

String Global

relay_log_purge

Boolean Global

replication_optimize_for_static_plugin_config

Boolean Global

replication_sender_observe_commit_only

Boolean Global

require_secure_transport

Boolean Global

rewriter_enabled

Boolean Global

rewriter_verbose

Integer Global

rpl_semi_sync_master_enabled

Boolean Global

rpl_semi_sync_master_timeout

Integer Global

rpl_semi_sync_master_trace_level

Integer Global

rpl_semi_sync_master_wait_for_slave_count

Integer Global

rpl_semi_sync_master_wait_no_slave

Boolean Global

rpl_semi_sync_master_wait_point

Enumeration Global

rpl_semi_sync_slave_enabled

Boolean Global

rpl_semi_sync_slave_trace_level

Integer Global

rpl_stop_slave_timeout

Integer Global

secure_auth

Boolean Global

server_id

Integer Global

session_track_gtids

Enumeration Both

session_track_schema

Boolean Both

session_track_state_change

Boolean Both

session_track_system_variables

String Both

session_track_transaction_info

Enumeration Both

sha256_password_proxy_users

Boolean Global

show_compatibility_56

Boolean Global

show_create_table_verbosity

Boolean Both

show_old_temporals

Boolean Both

slave_allow_batching

Boolean Global

slave_checkpoint_group

Integer Global

slave_checkpoint_period

Integer Global

slave_compressed_protocol

Boolean Global

slave_exec_mode

Enumeration Global

slave_max_allowed_packet

Integer Global

slave_net_timeout

Integer Global

slave_parallel_type

Enumeration Global

slave_parallel_workers

Integer Global

slave_pending_jobs_size_max

Integer Global

slave_preserve_commit_order

Boolean Global

slave_rows_search_algorithms

Set Global

slave_sql_verify_checksum

Boolean Global

slave_transaction_retries

Integer Global

slave_type_conversions

Set Global

slow_launch_time

Integer Global

slow_query_log

Boolean Global

slow_query_log_file

File name Global

sort_buffer_size

Integer Both

sql_auto_is_null

Boolean Both

sql_big_selects

Boolean Both

sql_buffer_result

Boolean Both

sql_log_bin

Boolean Session

sql_log_off

Boolean Both

sql_mode

Set Both

sql_notes

Boolean Both

sql_quote_show_create

Boolean Both

sql_safe_updates

Boolean Both

sql_select_limit

Integer Both

sql_slave_skip_counter

Integer Global

sql_warnings

Boolean Both

stored_program_cache

Integer Global

super_read_only

Boolean Global

sync_binlog

Integer Global

sync_frm

Boolean Global

sync_master_info

Integer Global

sync_relay_log

Integer Global

sync_relay_log_info

Integer Global

table_definition_cache

Integer Global

table_open_cache

Integer Global

thread_cache_size

Integer Global

thread_pool_high_priority_connection

Integer Both

thread_pool_max_unused_threads

Integer Global

thread_pool_prio_kickup_timer

Integer Global

thread_pool_stall_limit

Integer Global

time_zone

String Both

timestamp

Numeric Session

tmp_table_size

Integer Both

transaction_alloc_block_size

Integer Both

transaction_allow_batching

Boolean Session

transaction_isolation

Enumeration Both

transaction_prealloc_size

Integer Both

transaction_read_only

Boolean Both

transaction_write_set_extraction

Enumeration Both

tx_isolation

Enumeration Both

tx_read_only

Boolean Both

unique_checks

Boolean Both

updatable_views_with_limit

Boolean Both

validate_password_check_user_name

Boolean Global

validate_password_dictionary_file

File name Global

validate_password_length

Integer Global

validate_password_mixed_case_count

Integer Global

validate_password_number_count

Integer Global

validate_password_policy

Enumeration Global

validate_password_special_char_count

Integer Global

version_tokens_session

String Both

wait_timeout

Integer Both

 File: manual.info.tmp, Node: structured-system-variables, Prev: dynamic-system-variables, Up: using-system-variables

5.1.8.3 Structured System Variables ...................................

A structured variable differs from a regular system variable in two respects:

MySQL supports one structured variable type, which specifies parameters governing the operation of key caches. A key cache structured variable has these components:

This section describes the syntax for referring to structured variables. Key cache variables are used for syntax examples, but specific details about how key caches operate are found elsewhere, in *note myisam-key-cache::.

To refer to a component of a structured variable instance, you can use a compound name in INSTANCE_NAME.COMPONENT_NAME format. Examples:

 hot_cache.key_buffer_size
 hot_cache.key_cache_block_size
 cold_cache.key_cache_block_size

For each structured system variable, an instance with the name of 'default' is always predefined. If you refer to a component of a structured variable without any instance name, the 'default' instance is used. Thus, 'default.key_buffer_size' and 'key_buffer_size' both refer to the same system variable.

Structured variable instances and components follow these naming rules:

Currently, the first two rules have no possibility of being violated because the only structured variable type is the one for key caches. These rules may assume greater significance if some other type of structured variable is created in the future.

With one exception, you can refer to structured variable components using compound names in any context where simple variable names can occur. For example, you can assign a value to a structured variable using a command-line option:

 $> mysqld --hot_cache.key_buffer_size=64K

In an option file, use this syntax:

 [mysqld]
 hot_cache.key_buffer_size=64K

If you start the server with this option, it creates a key cache named 'hot_cache' with a size of 64KB in addition to the default key cache that has a default size of 8MB.

Suppose that you start the server as follows:

 $> mysqld --key_buffer_size=256K \
          --extra_cache.key_buffer_size=128K \
          --extra_cache.key_cache_block_size=2048

In this case, the server sets the size of the default key cache to 256KB. (You could also have written '--default.key_buffer_size=256K'.) In addition, the server creates a second key cache named 'extra_cache' that has a size of 128KB, with the size of block buffers for caching table index blocks set to 2048 bytes.

The following example starts the server with three different key caches having sizes in a 3:1:1 ratio:

 $> mysqld --key_buffer_size=6M \
          --hot_cache.key_buffer_size=2M \
          --cold_cache.key_buffer_size=2M

Structured variable values may be set and retrieved at runtime as well. For example, to set a key cache named 'hot_cache' to a size of 10MB, use either of these statements:

 mysql> SET GLOBAL hot_cache.key_buffer_size = 10*1024*1024;
 mysql> SET @@GLOBAL.hot_cache.key_buffer_size = 10*1024*1024;

To retrieve the cache size, do this:

 mysql> SELECT @@GLOBAL.hot_cache.key_buffer_size;

However, the following statement does not work. The variable is not interpreted as a compound name, but as a simple string for a 'LIKE' pattern-matching operation:

 mysql> SHOW GLOBAL VARIABLES LIKE 'hot_cache.key_buffer_size';

This is the exception to being able to use structured variable names anywhere a simple variable name may occur.

 File: manual.info.tmp, Node: server-status-variables, Next: sql-mode, Prev: using-system-variables, Up: mysqld-server

5.1.9 Server Status Variables

The MySQL server maintains many status variables that provide information about its operation. You can view these variables and their values by using the 'SHOW [GLOBAL | SESSION] STATUS' statement (see *note show-status::). The optional 'GLOBAL' keyword aggregates the values over all connections, and 'SESSION' shows the values for the current connection.

 mysql> SHOW GLOBAL STATUS;
 +-----------------------------------+------------+
 | Variable_name                     | Value      |
 +-----------------------------------+------------+
 | Aborted_clients                   | 0          |
 | Aborted_connects                  | 0          |
 | Bytes_received                    | 155372598  |
 | Bytes_sent                        | 1176560426 |
 ...
 | Connections                       | 30023      |
 | Created_tmp_disk_tables           | 0          |
 | Created_tmp_files                 | 3          |
 | Created_tmp_tables                | 2          |
 ...
 | Threads_created                   | 217        |
 | Threads_running                   | 88         |
 | Uptime                            | 1389872    |
 +-----------------------------------+------------+

Many status variables are reset to 0 by the 'FLUSH STATUS' statement.

This section provides a description of each status variable. For a status variable summary, see note server-status-variable-reference::. For information about status variables specific to NDB Cluster, see note mysql-cluster-status-variables::.

The status variables have the meanings shown in the following list.

 File: manual.info.tmp, Node: sql-mode, Next: connection-management, Prev: server-status-variables, Up: mysqld-server

5.1.10 Server SQL Modes

The MySQL server can operate in different SQL modes, and can apply these modes differently for different clients, depending on the value of the 'sql_mode' system variable. DBAs can set the global SQL mode to match site server operating requirements, and each application can set its session SQL mode to its own requirements.

Modes affect the SQL syntax MySQL supports and the data validation checks it performs. This makes it easier to use MySQL in different environments and to use MySQL together with other database servers.

For answers to questions often asked about server SQL modes in MySQL, see *note faqs-sql-modes::.

When working with 'InnoDB' tables, consider also the 'innodb_strict_mode' system variable. It enables additional error checks for 'InnoDB' tables.

Setting the SQL Mode

The default SQL mode in MySQL 5.7 includes these modes: 'ONLY_FULL_GROUP_BY', 'STRICT_TRANS_TABLES', 'NO_ZERO_IN_DATE', 'NO_ZERO_DATE', 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_AUTO_CREATE_USER', and 'NO_ENGINE_SUBSTITUTION'.

These modes were added to the default SQL mode in MySQL 5.7: The 'ONLY_FULL_GROUP_BY' and 'STRICT_TRANS_TABLES' modes were added in MySQL 5.7.5. The 'NO_AUTO_CREATE_USER' mode was added in MySQL 5.7.7. The 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_ZERO_DATE', and 'NO_ZERO_IN_DATE' modes were added in MySQL 5.7.8. For additional discussion regarding these changes to the default SQL mode value, see *note sql-mode-changes::.

To set the SQL mode at server startup, use the '--sql-mode="MODES"' option on the command line, or 'sql-mode="MODES"' in an option file such as 'my.cnf' (Unix operating systems) or 'my.ini' (Windows). MODES is a list of different modes separated by commas. To clear the SQL mode explicitly, set it to an empty string using '--sql-mode=""' on the command line, or 'sql-mode=""' in an option file.

Note:

MySQL installation programs may configure the SQL mode during the installation process. If the SQL mode differs from the default or from what you expect, check for a setting in an option file that the server reads at startup.

To change the SQL mode at runtime, set the global or session 'sql_mode' system variable using a *note 'SET': set-variable. statement:

 SET GLOBAL sql_mode = 'MODES';
 SET SESSION sql_mode = 'MODES';

Setting the 'GLOBAL' variable requires the 'SUPER' privilege and affects the operation of all clients that connect from that time on. Setting the 'SESSION' variable affects only the current client. Each client can change its session 'sql_mode' value at any time.

To determine the current global or session 'sql_mode' setting, select its value:

 SELECT @@GLOBAL.sql_mode;
 SELECT @@SESSION.sql_mode;

Important:

SQL mode and user-defined partitioning

Changing the server SQL mode after creating and inserting data into partitioned tables can cause major changes in the behavior of such tables, and could lead to loss or corruption of data. It is strongly recommended that you never change the SQL mode once you have created tables employing user-defined partitioning.

When replicating partitioned tables, differing SQL modes on the source and replica can also lead to problems. For best results, you should always use the same server SQL mode on the source and replica.

For more information, see *note partitioning-limitations::.

The Most Important SQL Modes

The most important 'sql_mode' values are probably these:

When this manual refers to 'strict mode,' it means a mode with either or both 'STRICT_TRANS_TABLES' or 'STRICT_ALL_TABLES' enabled.

Full List of SQL Modes

The following list describes all supported SQL modes:

Combination SQL Modes

The following special modes are provided as shorthand for combinations of mode values from the preceding list.

Strict SQL Mode

Strict mode controls how MySQL handles invalid or missing values in data-change statements such as note 'INSERT': insert. or note 'UPDATE': update. A value can be invalid for several reasons. For example, it might have the wrong data type for the column, or it might be out of range. A value is missing when a new row to be inserted does not contain a value for a non-'NULL' column that has no explicit 'DEFAULT' clause in its definition. (For a 'NULL' column, 'NULL' is inserted if the value is missing.) Strict mode also affects DDL statements such as *note 'CREATE TABLE': create-table.

If strict mode is not in effect, MySQL inserts adjusted values for invalid or missing values and produces warnings (see note show-warnings::). In strict mode, you can produce this behavior by using note 'INSERT IGNORE': insert. or *note 'UPDATE IGNORE': update.

For statements such as *note 'SELECT': select. that do not change data, invalid values generate a warning in strict mode, not an error.

Strict mode produces an error for attempts to create a key that exceeds the maximum key length. When strict mode is not enabled, this results in a warning and truncation of the key to the maximum key length.

Strict mode does not affect whether foreign key constraints are checked. 'foreign_key_checks' can be used for that. (See *note server-system-variables::.)

Strict SQL mode is in effect if either 'STRICT_ALL_TABLES' or 'STRICT_TRANS_TABLES' is enabled, although the effects of these modes differ somewhat:

Strict mode affects handling of division by zero, zero dates, and zeros in dates as follows:

For more information about strict mode with respect to 'IGNORE', see *note ignore-strict-comparison::.

Before MySQL 5.7.4, and in MySQL 5.7.8 and later, strict mode affects handling of division by zero, zero dates, and zeros in dates in conjunction with the 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_ZERO_DATE', and 'NO_ZERO_IN_DATE' modes. From MySQL 5.7.4 though 5.7.7, the 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_ZERO_DATE', and 'NO_ZERO_IN_DATE' modes do nothing when named explicitly and their effects are included in the effects of strict mode. For additional discussion, see *note sql-mode-changes::.

Comparison of the IGNORE Keyword and Strict SQL Mode

This section compares the effect on statement execution of the 'IGNORE' keyword (which downgrades errors to warnings) and strict SQL mode (which upgrades warnings to errors). It describes which statements they affect, and which errors they apply to.

The following table presents a summary comparison of statement behavior when the default is to produce an error versus a warning. An example of when the default is to produce an error is inserting a 'NULL' into a 'NOT NULL' column. An example of when the default is to produce a warning is inserting a value of the wrong data type into a column (such as inserting the string ''abc'' into an integer column).

Operational Mode When Statement Default When Statement Default is Error is Warning

Without 'IGNORE' or strict SQL mode

Error Warning

With 'IGNORE'

Warning Warning (same as without 'IGNORE' or strict SQL mode)

With strict SQL mode

Error (same as without Error 'IGNORE' or strict SQL
mode)

With 'IGNORE' and strict SQL mode

Warning Warning

One conclusion to draw from the table is that when the 'IGNORE' keyword and strict SQL mode are both in effect, 'IGNORE' takes precedence. This means that, although 'IGNORE' and strict SQL mode can be considered to have opposite effects on error handling, they do not cancel when used together.

The Effect of IGNORE on Statement Execution

Several statements in MySQL support an optional 'IGNORE' keyword. This keyword causes the server to downgrade certain types of errors and generate warnings instead. For a multiple-row statement, downgrading an error to a warning may enable a row to be processed. Otherwise, 'IGNORE' causes the statement to skip to the next row instead of aborting. (For nonignorable errors, an error occurs regardless of the 'IGNORE' keyword.)

Example: If the table 't' has a primary key column 'i' containing unique values, attempting to insert the same value of 'i' into multiple rows normally produces a duplicate-key error:

 mysql> CREATE TABLE t (i INT NOT NULL PRIMARY KEY);
 mysql> INSERT INTO t (i) VALUES(1),(1);
 ERROR 1062 (23000): Duplicate entry '1' for key 'PRIMARY'

With 'IGNORE', the row containing the duplicate key still is not inserted, but a warning occurs instead of an error:

 mysql> INSERT IGNORE INTO t (i) VALUES(1),(1);
 Query OK, 1 row affected, 1 warning (0.01 sec)
 Records: 2  Duplicates: 1  Warnings: 1

 mysql> SHOW WARNINGS;
 +---------+------+---------------------------------------+
 | Level   | Code | Message                               |
 +---------+------+---------------------------------------+
 | Warning | 1062 | Duplicate entry '1' for key 'PRIMARY' |
 +---------+------+---------------------------------------+
 1 row in set (0.00 sec)

Example: If the table 't2' has a 'NOT NULL' column 'id', attempting to insert 'NULL' produces an error in strict SQL mode:

 mysql> CREATE TABLE t2 (id INT NOT NULL);
 mysql> INSERT INTO t2 (id) VALUES(1),(NULL),(3);
 ERROR 1048 (23000): Column 'id' cannot be null
 mysql> SELECT * FROM t2;
 Empty set (0.00 sec)

If the SQL mode is not strict, 'IGNORE' causes the 'NULL' to be inserted as the column implicit default (0 in this case), which enables the row to be handled without skipping it:

 mysql> INSERT INTO t2 (id) VALUES(1),(NULL),(3);
 mysql> SELECT * FROM t2;
 +----+
 | id |
 +----+
 |  1 |
 |  0 |
 |  3 |
 +----+

These statements support the 'IGNORE' keyword:

The 'IGNORE' keyword applies to the following ignorable errors:

The Effect of Strict SQL Mode on Statement Execution

The MySQL server can operate in different SQL modes, and can apply these modes differently for different clients, depending on the value of the 'sql_mode' system variable. In 'strict' SQL mode, the server upgrades certain warnings to errors.

For example, in non-strict SQL mode, inserting the string ''abc'' into an integer column results in conversion of the value to 0 and a warning:

 mysql> SET sql_mode = '';
 Query OK, 0 rows affected (0.00 sec)

 mysql> INSERT INTO t (i) VALUES('abc');
 Query OK, 1 row affected, 1 warning (0.01 sec)

 mysql> SHOW WARNINGS;
 +---------+------+--------------------------------------------------------+
 | Level   | Code | Message                                                |
 +---------+------+--------------------------------------------------------+
 | Warning | 1366 | Incorrect integer value: 'abc' for column 'i' at row 1 |
 +---------+------+--------------------------------------------------------+
 1 row in set (0.00 sec)

In strict SQL mode, the invalid value is rejected with an error:

 mysql> SET sql_mode = 'STRICT_ALL_TABLES';
 Query OK, 0 rows affected (0.00 sec)

 mysql> INSERT INTO t (i) VALUES('abc');
 ERROR 1366 (HY000): Incorrect integer value: 'abc' for column 'i' at row 1

For more information about possible settings of the 'sql_mode' system variable, see *note sql-mode::.

Strict SQL mode applies to the following statements under conditions for which some value might be out of range or an invalid row is inserted into or deleted from a table:

Within stored programs, individual statements of the types just listed execute in strict SQL mode if the program was defined while strict mode was in effect.

Strict SQL mode applies to the following errors, which represent a class of errors in which an input value is either invalid or missing. A value is invalid if it has the wrong data type for the column or might be out of range. A value is missing if a new row to be inserted does not contain a value for a 'NOT NULL' column that has no explicit 'DEFAULT' clause in its definition.

 ER_BAD_NULL_ERROR (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_bad_null_error)
 ER_CUT_VALUE_GROUP_CONCAT (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_cut_value_group_concat)
 ER_DATA_TOO_LONG (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_data_too_long)
 ER_DATETIME_FUNCTION_OVERFLOW (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_datetime_function_overflow)
 ER_DIVISION_BY_ZERO (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_division_by_zero)
 ER_INVALID_ARGUMENT_FOR_LOGARITHM (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_invalid_argument_for_logarithm)
 ER_NO_DEFAULT_FOR_FIELD (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_no_default_for_field)
 ER_NO_DEFAULT_FOR_VIEW_FIELD (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_no_default_for_view_field)
 ER_TOO_LONG_KEY (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_too_long_key)
 ER_TRUNCATED_WRONG_VALUE (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_truncated_wrong_value)
 ER_TRUNCATED_WRONG_VALUE_FOR_FIELD (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_truncated_wrong_value_for_field)
 ER_WARN_DATA_OUT_OF_RANGE (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_warn_data_out_of_range)
 ER_WARN_NULL_TO_NOTNULL (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_warn_null_to_notnull)
 ER_WARN_TOO_FEW_RECORDS (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_warn_too_few_records)
 ER_WRONG_ARGUMENTS (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_wrong_arguments)
 ER_WRONG_VALUE_FOR_TYPE (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_er_wrong_value_for_type)
 WARN_DATA_TRUNCATED (https://dev.mysql.com/doc/mysql-errors/5.7/en/server-error-reference.html#error_warn_data_truncated)

Note:

Because continued MySQL development defines new errors, there may be errors not in the preceding list to which strict SQL mode applies.

SQL Mode Changes in MySQL 5.7

In MySQL 5.7.22, these SQL modes are deprecated and are removed in MySQL 8.0: 'DB2', 'MAXDB', 'MSSQL', 'MYSQL323', 'MYSQL40', 'ORACLE', 'POSTGRESQL', 'NO_FIELD_OPTIONS', 'NO_KEY_OPTIONS', 'NO_TABLE_OPTIONS'.

In MySQL 5.7, the 'ONLY_FULL_GROUP_BY' SQL mode is enabled by default because 'GROUP BY' processing has become more sophisticated to include detection of functional dependencies. However, if you find that having 'ONLY_FULL_GROUP_BY' enabled causes queries for existing applications to be rejected, either of these actions should restore operation:

In MySQL 5.7, the 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_ZERO_DATE', and 'NO_ZERO_IN_DATE' SQL modes are deprecated. The long term plan is to have the three modes be included in strict SQL mode and to remove them as explicit modes in a future release of MySQL. For compatibility in MySQL 5.7 with MySQL 5.6 strict mode and to provide additional time for affected applications to be modified, the following behaviors apply:

With the preceding changes, stricter data checking is still enabled by default, but the individual modes can be disabled in environments where it is currently desirable or necessary to do so.

 File: manual.info.tmp, Node: connection-management, Next: ipv6-support, Prev: sql-mode, Up: mysqld-server

5.1.11 Connection Management

This section describes how MySQL Server manages connections. This includes a description of the available connection interfaces, how the server uses connection handler threads, details about the administrative connection interface, and management of DNS lookups.

 File: manual.info.tmp, Node: connection-interfaces, Next: host-cache, Prev: connection-management, Up: connection-management

5.1.11.1 Connection Interfaces ..............................

This section describes aspects of how the MySQL server manages client connections.

Network Interfaces and Connection Manager Threads

The server is capable of listening for client connections on multiple network interfaces. Connection manager threads handle client connection requests on the network interfaces that the server listens to:

The server does not create threads to handle interfaces that it does not listen to. For example, a Windows server that does not have support for named-pipe connections enabled does not create a thread to handle them.

Individual server plugins or components may implement their own connection interface:

Client Connection Thread Management

Connection manager threads associate each client connection with a thread dedicated to it that handles authentication and request processing for that connection. Manager threads create a new thread when necessary but try to avoid doing so by consulting the thread cache first to see whether it contains a thread that can be used for the connection. When a connection ends, its thread is returned to the thread cache if the cache is not full.

In this connection thread model, there are as many threads as there are clients currently connected, which has some disadvantages when server workload must scale to handle large numbers of connections. For example, thread creation and disposal becomes expensive. Also, each thread requires server and kernel resources, such as stack space. To accommodate a large number of simultaneous connections, the stack size per thread must be kept small, leading to a situation where it is either too small or the server consumes large amounts of memory. Exhaustion of other resources can occur as well, and scheduling overhead can become significant.

MySQL Enterprise Edition includes a thread pool plugin that provides an alternative thread-handling model designed to reduce overhead and improve performance. It implements a thread pool that increases server performance by efficiently managing statement execution threads for large numbers of client connections. See *note thread-pool::.

To control and monitor how the server manages threads that handle client connections, several system and status variables are relevant. (See note server-system-variables::, and note server-status-variables::.)

Connection Volume Management

To control the maximum number of clients the server permits to connect simultaneously, set the 'max_connections' system variable at server startup or at runtime. It may be necessary to increase 'max_connections' if more clients attempt to connect simultaneously then the server is configured to handle (see *note too-many-connections::).

note 'mysqld': mysqld. actually permits 'max_connections' + 1 client connections. The extra connection is reserved for use by accounts that have the 'SUPER' privilege. By granting the privilege to administrators and not to normal users (who should not need it), an administrator who also has the 'PROCESS' privilege can connect to the server and use note 'SHOW PROCESSLIST': show-processlist. to diagnose problems even if the maximum number of unprivileged clients are connected. See *note show-processlist::.

If the server refuses a connection because the 'max_connections' limit is reached, it increments the 'Connection_errors_max_connections' status variable.

The maximum number of connections MySQL supports (that is, the maximum value to which 'max_connections' can be set) depends on several factors:

Linux or Solaris should be able to support at least 500 to 1000 simultaneous connections routinely and as many as 10,000 connections if you have many gigabytes of RAM available and the workload from each is low or the response time target undemanding.

Increasing the 'max_connections' value increases the number of file descriptors that note 'mysqld': mysqld. requires. If the required number of descriptors are not available, the server reduces the value of 'max_connections'. For comments on file descriptor limits, see note table-cache::.

Increasing the 'open_files_limit' system variable may be necessary, which may also require raising the operating system limit on how many file descriptors can be used by MySQL. Consult your operating system documentation to determine whether it is possible to increase the limit and how to do so. See also *note not-enough-file-handles::.

 File: manual.info.tmp, Node: host-cache, Prev: connection-interfaces, Up: connection-management

5.1.11.2 DNS Lookups and the Host Cache .......................................

The MySQL server maintains an in-memory host cache that contains information about clients: IP address, host name, and error information. The Performance Schema note 'host_cache': performance-schema-host-cache-table. table exposes the contents of the host cache so that it can be examined using note 'SELECT': select. statements. This may help you diagnose the causes of connection problems. See *note performance-schema-host-cache-table::.

The following sections discuss how the host cache works, as well as other topics such as how to configure and monitor the cache.

Host Cache Operation

The server uses the host cache only for non-localhost TCP connections. It does not use the cache for TCP connections established using a loopback interface address (for example, '127.0.0.1' or '::1'), or for connections established using a Unix socket file, named pipe, or shared memory.

The server uses the host cache for several purposes:

For each applicable new client connection, the server uses the client IP address to check whether the client host name is in the host cache. If so, the server refuses or continues to process the connection request depending on whether or not the host is blocked. If the host is not in the cache, the server attempts to resolve the host name. First, it resolves the IP address to a host name and resolves that host name back to an IP address. Then it compares the result to the original IP address to ensure that they are the same. The server stores information about the result of this operation in the host cache. If the cache is full, the least recently used entry is discarded.

The server performs host name resolution using the 'getaddrinfo()' system call.

The server handles entries in the host cache like this:

  1. When the first TCP client connection reaches the server from a given IP address, a new cache entry is created to record the client IP, host name, and client lookup validation flag. Initially, the host name is set to 'NULL' and the flag is false. This entry is also used for subsequent client TCP connections from the same originating IP.

  2. If the validation flag for the client IP entry is false, the server attempts an IP-to-host name-to-IP DNS resolution. If that is successful, the host name is updated with the resolved host name and the validation flag is set to true. If resolution is unsuccessful, the action taken depends on whether the error is permanent or transient. For permanent failures, the host name remains 'NULL' and the validation flag is set to true. For transient failures, the host name and validation flag remain unchanged. (In this case, another DNS resolution attempt occurs the next time a client connects from this IP.)

  3. If an error occurs while processing an incoming client connection from a given IP address, the server updates the corresponding error counters in the entry for that IP. For a description of the errors recorded, see *note performance-schema-host-cache-table::.

To unblock blocked hosts, flush the host cache; see *note blocked-host::.

It is possible for a blocked host to become unblocked even without flushing the host cache if activity from other hosts occurs:

Some connection errors are not associated with TCP connections, occur very early in the connection process (even before an IP address is known), or are not specific to any particular IP address (such as out-of-memory conditions). For information about these errors, check the 'Connection_errors_XXX' status variables (see *note server-status-variables::).

Configuring the Host Cache

The host cache is enabled by default. The 'host_cache_size' system variable controls its size, as well as the size of the Performance Schema *note 'host_cache': performance-schema-host-cache-table. table that exposes the cache contents. The cache size can be set at server startup and changed at runtime. For example, to set the size to 100 at startup, put these lines in the server 'my.cnf' file:

 [mysqld]
 host_cache_size=200

To change the size to 300 at runtime, do this:

 SET GLOBAL host_cache_size=300;

Setting 'host_cache_size' to 0, either at server startup or at runtime, disables the host cache. With the cache disabled, the server performs a DNS lookup every time a client connects.

Changing the cache size at runtime causes an implicit host cache flushing operation that clears the host cache, truncates the note 'host_cache': performance-schema-host-cache-table. table, and unblocks any blocked hosts; see note host-cache-flushing::.

Using the '--skip-host-cache' option is similar to setting the 'host_cache_size' system variable to 0, but 'host_cache_size' is more flexible because it can also be used to resize, enable, and disable the host cache at runtime, not just at server startup. Starting the server with '--skip-host-cache' does not prevent runtime changes to the value of 'host_cache_size', but such changes have no effect and the cache is not re-enabled even if 'host_cache_size' is set larger than 0.

To disable DNS host name lookups, start the server with the 'skip_name_resolve' system variable enabled. In this case, the server uses only IP addresses and not host names to match connecting hosts to rows in the MySQL grant tables. Only accounts specified in those tables using IP addresses can be used. (A client may not be able to connect if no account exists that specifies the client IP address.)

If you have a very slow DNS and many hosts, you might be able to improve performance either by enabling 'skip_name_resolve' to disable DNS lookups, or by increasing the value of 'host_cache_size' to make the host cache larger.

To disallow TCP/IP connections entirely, start the server with the 'skip_networking' system variable enabled.

To adjust the permitted number of successive connection errors before host blocking occurs, set the 'max_connect_errors' system variable. For example, to set the value at startup put these lines in the server 'my.cnf' file:

 [mysqld]
 max_connect_errors=10000

To change the value at runtime, do this:

 SET GLOBAL max_connect_errors=10000;

Monitoring the Host Cache

The Performance Schema note 'host_cache': performance-schema-host-cache-table. table exposes the contents of the host cache. This table can be examined using note 'SELECT': select. statements, which may help you diagnose the causes of connection problems. The Performance Schema must be enabled or this table is empty. For information about this table, see *note performance-schema-host-cache-table::.

Flushing the Host Cache

Flushing the host cache might be advisable or desirable under these conditions:

Flushing the host cache has these effects:

To flush the host cache, use any of these methods:

Dealing with Blocked Hosts

The server uses the host cache to track errors that occur during the client connection process. If the following error occurs, it means that *note 'mysqld': mysqld. has received many connection requests from the given host that were interrupted in the middle:

 Host 'HOST_NAME' is blocked because of many connection errors.
 Unblock with 'mysqladmin flush-hosts'

The value of the 'max_connect_errors' system variable determines how many successive interrupted connection requests the server permits before blocking a host. After 'max_connect_errors' failed requests without a successful connection, the server assumes that something is wrong (for example, that someone is trying to break in), and blocks the host from further connection requests.

To unblock blocked hosts, flush the host cache; see *note host-cache-flushing::.

Alternatively, to avoid having the error message occur, set 'max_connect_errors' as described in *note host-cache-configuration::. The default value of 'max_connect_errors' is 100. Increasing 'max_connect_errors' to a large value makes it less likely that a host reaches the threshold and becomes blocked. However, if the 'Host 'HOST_NAME' is blocked' error message occurs, first verify that there is nothing wrong with TCP/IP connections from the blocked hosts. It does no good to increase the value of 'max_connect_errors' if there are network problems.

 File: manual.info.tmp, Node: ipv6-support, Next: time-zone-support, Prev: connection-management, Up: mysqld-server

5.1.12 IPv6 Support

Support for IPv6 in MySQL includes these capabilities:

The following sections describe how to set up MySQL so that clients can connect to the server over IPv6.

 File: manual.info.tmp, Node: ipv6-system-support, Next: ipv6-server-config, Prev: ipv6-support, Up: ipv6-support

5.1.12.1 Verifying System Support for IPv6 ..........................................

Before MySQL Server can accept IPv6 connections, the operating system on your server host must support IPv6. As a simple test to determine whether that is true, try this command:

 $> ping6 ::1
 16 bytes from ::1, icmp_seq=0 hlim=64 time=0.171 ms
 16 bytes from ::1, icmp_seq=1 hlim=64 time=0.077 ms
 ...

To produce a description of your system's network interfaces, invoke 'ifconfig -a' and look for IPv6 addresses in the output.

If your host does not support IPv6, consult your system documentation for instructions on enabling it. It might be that you need only reconfigure an existing network interface to add an IPv6 address. Or a more extensive change might be needed, such as rebuilding the kernel with IPv6 options enabled.

These links may be helpful in setting up IPv6 on various platforms:

 File: manual.info.tmp, Node: ipv6-server-config, Next: ipv6-local-connections, Prev: ipv6-system-support, Up: ipv6-support

5.1.12.2 Configuring the MySQL Server to Permit IPv6 Connections ................................................................

The MySQL server listens on a single network socket for TCP/IP connections. This socket is bound to a single address, but it is possible for an address to map onto multiple network interfaces. To specify an address, set 'bind_address=ADDR' at server startup, where ADDR is an IPv4 or IPv6 address or a host name. For details, see the 'bind_address' description in *note server-system-variables::.

 File: manual.info.tmp, Node: ipv6-local-connections, Next: ipv6-remote-connections, Prev: ipv6-server-config, Up: ipv6-support

5.1.12.3 Connecting Using the IPv6 Local Host Address .....................................................

The following procedure shows how to configure MySQL to permit IPv6 connections by clients that connect to the local server using the '::1' local host address. The instructions given here assume that your system supports IPv6.

  1. Start the MySQL server with an appropriate 'bind_address' setting to permit it to accept IPv6 connections. For example, put the following lines in the server option file and restart the server:

      [mysqld]
      bind_address = *

    Alternatively, you can bind the server to '::1', but that makes the server more restrictive for TCP/IP connections. It accepts only IPv6 connections for that single address and rejects IPv4 connections. For more information, see the 'bind_address' description in *note server-system-variables::.

  2. As an administrator, connect to the server and create an account for a local user who connects from the '::1' local IPv6 host address:

      mysql> CREATE USER 'ipv6user'@'::1' IDENTIFIED BY 'ipv6pass';

    For the permitted syntax of IPv6 addresses in account names, see note account-names::. In addition to the note 'CREATE USER': create-user. statement, you can issue *note 'GRANT': grant. statements that give specific privileges to the account, although that is not necessary for the remaining steps in this procedure.

  3. Invoke the *note 'mysql': mysql. client to connect to the server using the new account:

      $> mysql -h ::1 -u ipv6user -pipv6pass
  4. Try some simple statements that show connection information:

      mysql> STATUS
      ...
      Connection:   ::1 via TCP/IP
      ...
    
      mysql> SELECT CURRENT_USER(), @@bind_address;
      +----------------+----------------+
      | CURRENT_USER() | @@bind_address |
      +----------------+----------------+
      | ipv6user@::1   | ::             |
      +----------------+----------------+

 File: manual.info.tmp, Node: ipv6-remote-connections, Next: ipv6-brokers, Prev: ipv6-local-connections, Up: ipv6-support

5.1.12.4 Connecting Using IPv6 Nonlocal Host Addresses ......................................................

The following procedure shows how to configure MySQL to permit IPv6 connections by remote clients. It is similar to the preceding procedure for local clients, but the server and client hosts are distinct and each has its own nonlocal IPv6 address. The example uses these addresses:

 Server host: 2001:db8:0:f101::1
 Client host: 2001:db8:0:f101::2

These addresses are chosen from the nonroutable address range recommended by IANA (http://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.xml) for documentation purposes and suffice for testing on your local network. To accept IPv6 connections from clients outside the local network, the server host must have a public address. If your network provider assigns you an IPv6 address, you can use that. Otherwise, another way to obtain an address is to use an IPv6 broker; see *note ipv6-brokers::.

  1. Start the MySQL server with an appropriate 'bind_address' setting to permit it to accept IPv6 connections. For example, put the following lines in the server option file and restart the server:

      [mysqld]
      bind_address = *

    Alternatively, you can bind the server to '2001:db8:0:f101::1', but that makes the server more restrictive for TCP/IP connections. It accepts only IPv6 connections for that single address and rejects IPv4 connections. For more information, see the 'bind_address' description in *note server-system-variables::.

  2. On the server host ('2001:db8:0:f101::1'), create an account for a user who connects from the client host ('2001:db8:0:f101::2'):

      mysql> CREATE USER 'remoteipv6user'@'2001:db8:0:f101::2' IDENTIFIED BY 'remoteipv6pass';
  3. On the client host ('2001:db8:0:f101::2'), invoke the *note 'mysql': mysql. client to connect to the server using the new account:

      $> mysql -h 2001:db8:0:f101::1 -u remoteipv6user -premoteipv6pass
  4. Try some simple statements that show connection information:

      mysql> STATUS
      ...
      Connection:   2001:db8:0:f101::1 via TCP/IP
      ...
    
      mysql> SELECT CURRENT_USER(), @@bind_address;
      +-----------------------------------+----------------+
      | CURRENT_USER()                    | @@bind_address |
      +-----------------------------------+----------------+
      | remoteipv6user@2001:db8:0:f101::2 | ::             |
      +-----------------------------------+----------------+

 File: manual.info.tmp, Node: ipv6-brokers, Prev: ipv6-remote-connections, Up: ipv6-support

5.1.12.5 Obtaining an IPv6 Address from a Broker ................................................

If you do not have a public IPv6 address that enables your system to communicate over IPv6 outside your local network, you can obtain one from an IPv6 broker. The Wikipedia IPv6 Tunnel Broker page (http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers) lists several brokers and their features, such as whether they provide static addresses and the supported routing protocols.

After configuring your server host to use a broker-supplied IPv6 address, start the MySQL server with an appropriate 'bind_address' setting to permit the server to accept IPv6 connections. For example, put the following lines in the server option file and restart the server:

 [mysqld]
 bind_address = *

Alternatively, you can bind the server to the specific IPv6 address provided by the broker, but that makes the server more restrictive for TCP/IP connections. It accepts only IPv6 connections for that single address and rejects IPv4 connections. For more information, see the 'bind_address' description in *note server-system-variables::. In addition, if the broker allocates dynamic addresses, the address provided for your system might change the next time you connect to the broker. If so, any accounts you create that name the original address become invalid. To bind to a specific address but avoid this change-of-address problem, you may be able to arrange with the broker for a static IPv6 address.

The following example shows how to use Freenet6 as the broker and the 'gogoc' IPv6 client package on Gentoo Linux.

  1. Create an account at Freenet6 by visiting this URL and signing up:

      <http://gogonet.gogo6.com>
  2. After creating the account, go to this URL, sign in, and create a user ID and password for the IPv6 broker:

      <http://gogonet.gogo6.com/page/freenet6-registration>
  3. As 'root', install 'gogoc':

      $> emerge gogoc
  4. Edit '/etc/gogoc/gogoc.conf' to set the 'userid' and 'password' values. For example:

      userid=gogouser
      passwd=gogopass
  5. Start 'gogoc':

      $> /etc/init.d/gogoc start

    To start 'gogoc' each time your system boots, execute this command:

      $> rc-update add gogoc default
  6. Use 'ping6' to try to ping a host:

      $> ping6 ipv6.google.com
  7. To see your IPv6 address:

      $> ifconfig tun

 File: manual.info.tmp, Node: time-zone-support, Next: server-side-help-support, Prev: ipv6-support, Up: mysqld-server

5.1.13 MySQL Server Time Zone Support

This section describes the time zone settings maintained by MySQL, how to load the system tables required for named time support, how to stay current with time zone changes, and how to enable leap-second support.

For information about time zone settings in replication setups, see note replication-features-functions:: and note replication-features-timezone::.

Time Zone Variables

MySQL Server maintains several time zone settings:

The session time zone setting affects display and storage of time values that are zone-sensitive. This includes the values displayed by functions such as 'NOW()' or 'CURTIME()', and values stored in and retrieved from note 'TIMESTAMP': datetime. columns. Values for note 'TIMESTAMP': datetime. columns are converted from the session time zone to UTC for storage, and from UTC to the session time zone for retrieval.

The session time zone setting does not affect values displayed by functions such as 'UTC_TIMESTAMP()' or values in note 'DATE': datetime, note 'TIME': time, or note 'DATETIME': datetime. columns. Nor are values in those data types stored in UTC; the time zone applies for them only when converting from note 'TIMESTAMP': datetime. values. If you want locale-specific arithmetic for note 'DATE': datetime, note 'TIME': time, or *note 'DATETIME': datetime. values, convert them to UTC, perform the arithmetic, and then convert back.

The current global and session time zone values can be retrieved like this:

 SELECT @@GLOBAL.time_zone, @@SESSION.time_zone;

TIMEZONE values can be given in several formats, none of which are case-sensitive:

Populating the Time Zone Tables

Several tables in the 'mysql' system database exist to store time zone information (see *note system-schema::). The MySQL installation procedure creates the time zone tables, but does not load them. To do so manually, use the following instructions.

Note:

Loading the time zone information is not necessarily a one-time operation because the information changes occasionally. When such changes occur, applications that use the old rules become out of date and you may find it necessary to reload the time zone tables to keep the information used by your MySQL server current. See *note time-zone-upgrades::.

If your system has its own zoneinfo database (the set of files describing time zones), use the *note 'mysql_tzinfo_to_sql': mysql-tzinfo-to-sql. program to load the time zone tables. Examples of such systems are Linux, macOS, FreeBSD, and Solaris. One likely location for these files is the '/usr/share/zoneinfo' directory. If your system has no zoneinfo database, you can use a downloadable package, as described later in this section.

To load the time zone tables from the command line, pass the zoneinfo directory path name to note 'mysql_tzinfo_to_sql': mysql-tzinfo-to-sql. and send the output into the note 'mysql': mysql. program. For example:

 mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql

The *note 'mysql': mysql. command shown here assumes that you connect to the server using an account such as 'root' that has privileges for modifying tables in the 'mysql' system database. Adjust the connection parameters as required.

note 'mysql_tzinfo_to_sql': mysql-tzinfo-to-sql. reads your system's time zone files and generates SQL statements from them. note 'mysql': mysql. processes those statements to load the time zone tables.

*note 'mysql_tzinfo_to_sql': mysql-tzinfo-to-sql. also can be used to load a single time zone file or generate leap second information:

After running *note 'mysql_tzinfo_to_sql': mysql-tzinfo-to-sql, restart the server so that it does not continue to use any previously cached time zone data.

If your system has no zoneinfo database (for example, Windows), you can use a package containing SQL statements that is available for download at the MySQL Developer Zone:

 <https://dev.mysql.com/downloads/timezones.html>

Warning:

Do not use a downloadable time zone package if your system has a zoneinfo database. Use the *note 'mysql_tzinfo_to_sql': mysql-tzinfo-to-sql. utility instead. Otherwise, you may cause a difference in datetime handling between MySQL and other applications on your system.

To use an SQL-statement time zone package that you have downloaded, unpack it, then load the unpacked file contents into the time zone tables:

 mysql -u root -p mysql < FILE_NAME

Then restart the server.

Warning:

Do not use a downloadable time zone package that contains 'MyISAM' tables. That is intended for older MySQL versions. MySQL 5.7 and higher uses 'InnoDB' for the time zone tables. Trying to replace them with 'MyISAM' tables causes problems.

Staying Current with Time Zone Changes

When time zone rules change, applications that use the old rules become out of date. To stay current, it is necessary to make sure that your system uses current time zone information is used. For MySQL, there are multiple factors to consider in staying current:

If you are uncertain whether named time zones are available, for use either as the server's time zone setting or by clients that set their own time zone, check whether your time zone tables are empty. The following query determines whether the table that contains time zone names has any rows:

 mysql> SELECT COUNT(*) FROM mysql.time_zone_name;
 +----------+
 | COUNT(*) |
 +----------+
 |        0 |
 +----------+

A count of zero indicates that the table is empty. In this case, no applications currently are using named time zones, and you need not update the tables (unless you want to enable named time zone support). A count greater than zero indicates that the table is not empty and that its contents are available to be used for named time zone support. In this case, be sure to reload your time zone tables so that applications that use named time zones obtain correct query results.

To check whether your MySQL installation is updated properly for a change in Daylight Saving Time rules, use a test like the one following. The example uses values that are appropriate for the 2007 DST 1-hour change that occurs in the United States on March 11 at 2 a.m.

The test uses this query:

 SELECT
   CONVERT_TZ('2007-03-11 2:00:00','US/Eastern','US/Central') AS time1,
   CONVERT_TZ('2007-03-11 3:00:00','US/Eastern','US/Central') AS time2;

The two time values indicate the times at which the DST change occurs, and the use of named time zones requires that the time zone tables be used. The desired result is that both queries return the same result (the input time, converted to the equivalent value in the 'US/Central' time zone).

Before updating the time zone tables, you see an incorrect result like this:

 +---------------------+---------------------+
 | time1               | time2               |
 +---------------------+---------------------+
 | 2007-03-11 01:00:00 | 2007-03-11 02:00:00 |
 +---------------------+---------------------+

After updating the tables, you should see the correct result:

 +---------------------+---------------------+
 | time1               | time2               |
 +---------------------+---------------------+
 | 2007-03-11 01:00:00 | 2007-03-11 01:00:00 |
 +---------------------+---------------------+

Time Zone Leap Second Support

Leap second values are returned with a time part that ends with ':59:59'. This means that a function such as 'NOW()' can return the same value for two or three consecutive seconds during the leap second. It remains true that literal temporal values having a time part that ends with ':59:60' or ':59:61' are considered invalid.

If it is necessary to search for note 'TIMESTAMP': datetime. values one second before the leap second, anomalous results may be obtained if you use a comparison with ''YYYY-MM-DD HH:MM:SS'' values. The following example demonstrates this. It changes the session time zone to UTC so there is no difference between internal note 'TIMESTAMP': datetime. values (which are in UTC) and displayed values (which have time zone correction applied).

 mysql> CREATE TABLE t1 (
          a INT,
          ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
          PRIMARY KEY (ts)
        );
 Query OK, 0 rows affected (0.01 sec)

 mysql> -- change to UTC
 mysql> SET time_zone = '+00:00';
 Query OK, 0 rows affected (0.00 sec)

 mysql> -- Simulate NOW() = '2008-12-31 23:59:59'
 mysql> SET timestamp = 1230767999;
 Query OK, 0 rows affected (0.00 sec)

 mysql> INSERT INTO t1 (a) VALUES (1);
 Query OK, 1 row affected (0.00 sec)

 mysql> -- Simulate NOW() = '2008-12-31 23:59:60'
 mysql> SET timestamp = 1230768000;
 Query OK, 0 rows affected (0.00 sec)

 mysql> INSERT INTO t1 (a) VALUES (2);
 Query OK, 1 row affected (0.00 sec)

 mysql> -- values differ internally but display the same
 mysql> SELECT a, ts, UNIX_TIMESTAMP(ts) FROM t1;
 +------+---------------------+--------------------+
 | a    | ts                  | UNIX_TIMESTAMP(ts) |
 +------+---------------------+--------------------+
 |    1 | 2008-12-31 23:59:59 |         1230767999 |
 |    2 | 2008-12-31 23:59:59 |         1230768000 |
 +------+---------------------+--------------------+
 2 rows in set (0.00 sec)

 mysql> -- only the non-leap value matches
 mysql> SELECT * FROM t1 WHERE ts = '2008-12-31 23:59:59';
 +------+---------------------+
 | a    | ts                  |
 +------+---------------------+
 |    1 | 2008-12-31 23:59:59 |
 +------+---------------------+
 1 row in set (0.00 sec)

 mysql> -- the leap value with seconds=60 is invalid
 mysql> SELECT * FROM t1 WHERE ts = '2008-12-31 23:59:60';
 Empty set, 2 warnings (0.00 sec)

To work around this, you can use a comparison based on the UTC value actually stored in the column, which has the leap second correction applied:

 mysql> -- selecting using UNIX_TIMESTAMP value return leap value
 mysql> SELECT * FROM t1 WHERE UNIX_TIMESTAMP(ts) = 1230768000;
 +------+---------------------+
 | a    | ts                  |
 +------+---------------------+
 |    2 | 2008-12-31 23:59:59 |
 +------+---------------------+
 1 row in set (0.00 sec)

 File: manual.info.tmp, Node: server-side-help-support, Next: session-state-tracking, Prev: time-zone-support, Up: mysqld-server

5.1.14 Server-Side Help Support

MySQL Server supports a note 'HELP': help. statement that returns information from the MySQL Reference Manual (see note help::). This information is stored in several tables in the 'mysql' database (see note system-schema::). Proper operation of the note 'HELP': help. statement requires that these help tables be initialized.

For a new installation of MySQL using a binary or source distribution on Unix, help-table content initialization occurs when you initialize the data directory (see *note data-directory-initialization::). For an RPM distribution on Linux or binary distribution on Windows, content initialization occurs as part of the MySQL installation process.

For a MySQL upgrade using a binary distribution, help-table content is not upgraded automatically, but you can upgrade it manually. Locate the 'fill_help_tables.sql' file in the 'share' or 'share/mysql' directory. Change location into that directory and process the file with the *note 'mysql': mysql. client as follows:

 mysql -u root -p mysql < fill_help_tables.sql

The command shown here assumes that you connect to the server using an account such as 'root' that has privileges for modifying tables in the 'mysql' database. Adjust the connection parameters as required.

If you are working with Git and a MySQL development source tree, the source tree contains only a 'stub' version of 'fill_help_tables.sql'. To obtain a non-stub copy, use one from a source or binary distribution.

Note:

Each MySQL series has its own series-specific reference manual, so help-table content is series specific as well. This has implications for replication because help-table content should match the MySQL series. If you load MySQL 5.7 help content into a MySQL 5.7 source server, it does not make sense to replicate that content to a replica server from a different MySQL series and for which that content is not appropriate. For this reason, as you upgrade individual servers in a replication scenario, you should upgrade each server's help tables, using the instructions given earlier.

 File: manual.info.tmp, Node: session-state-tracking, Next: server-shutdown, Prev: server-side-help-support, Up: mysqld-server

5.1.15 Server Tracking of Client Session State

The MySQL server implements several session state trackers. A client can enable these trackers to receive notification of changes to its session state.

Uses for Session State Trackers

Session state trackers have uses such as these:

One use for the tracker mechanism is to provide a means for MySQL connectors and client applications to determine whether any session context is available to permit session migration from one server to another. (To change sessions in a load-balanced environment, it is necessary to detect whether there is session state to take into consideration when deciding whether a switch can be made.)

Another use for the tracker mechanism is to permit applications to know when transactions can be moved from one session to another. Transaction state tracking enables this, which is useful for applications that may wish to move transactions from a busy server to one that is less loaded. For example, a load-balancing connector managing a client connection pool could move transactions between available sessions in the pool.

However, session switching cannot be done at arbitrary times. If a session is in the middle of a transaction for which reads or writes have been done, switching to a different session implies a transaction rollback on the original session. A session switch must be done only when a transaction does not yet have any reads or writes performed within it.

Examples of when transactions might reasonably be switched:

In addition to knowing transaction state, it is useful to know transaction characteristics, so as to use the same characteristics if the transaction is moved to a different session. The following characteristics are relevant for this purpose:

 READ ONLY
 READ WRITE
 ISOLATION LEVEL
 WITH CONSISTENT SNAPSHOT

Available Session State Trackers

To support the session-tracking activities, notification is available for these types of client session state information:

For descriptions of the tracker-related system variables, see *note server-system-variables::. Those system variables permit control over which change notifications occur, but do not provide a way to access notification information. Notification occurs in the MySQL client/server protocol, which includes tracker information in OK packets so that session state changes can be detected.

C API Session State Tracker Support

To enable client applications to extract state-change information from OK packets returned by the server, the MySQL C API provides a pair of functions:

Test Suite Session State Tracker Support

The 'mysqltest' program has 'disable_session_track_info' and 'enable_session_track_info' commands that control whether session tracker notifications occur. You can use these commands to see from the command line what notifications SQL statements produce. Suppose that a file 'testscript' contains the following 'mysqltest' script:

 DROP TABLE IF EXISTS test.t1;
 CREATE TABLE test.t1 (i INT, f FLOAT);
 --enable_session_track_info
 SET @@SESSION.session_track_schema=ON;
 SET @@SESSION.session_track_system_variables='*';
 SET @@SESSION.session_track_state_change=ON;
 USE information_schema;
 SET NAMES 'utf8mb4';
 SET @@SESSION.session_track_transaction_info='CHARACTERISTICS';
 SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
 SET TRANSACTION READ WRITE;
 START TRANSACTION;
 SELECT 1;
 INSERT INTO test.t1 () VALUES();
 INSERT INTO test.t1 () VALUES(1, RAND());
 COMMIT;

Run the script as follows to see the information provided by the enabled trackers. For a description of the 'Tracker:' information displayed by 'mysqltest' for the various trackers, see mysql_session_track_get_first() (https://dev.mysql.com/doc/c-api/5.7/en/mysql-session-track-get-first.html).

 $> mysqltest < testscript
 DROP TABLE IF EXISTS test.t1;
 CREATE TABLE test.t1 (i INT, f FLOAT);
 SET @@SESSION.session_track_schema=ON;
 SET @@SESSION.session_track_system_variables='*';
 -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
 -- session_track_system_variables
 -- *

 SET @@SESSION.session_track_state_change=ON;
 -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
 -- session_track_state_change
 -- ON

 USE information_schema;
 -- Tracker : SESSION_TRACK_SCHEMA
 -- information_schema

 -- Tracker : SESSION_TRACK_STATE_CHANGE
 -- 1

 SET NAMES 'utf8mb4';
 -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
 -- character_set_client
 -- utf8mb4
 -- character_set_connection
 -- utf8mb4
 -- character_set_results
 -- utf8mb4

 -- Tracker : SESSION_TRACK_STATE_CHANGE
 -- 1

 SET @@SESSION.session_track_transaction_info='CHARACTERISTICS';
 -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
 -- session_track_transaction_info
 -- CHARACTERISTICS

 -- Tracker : SESSION_TRACK_STATE_CHANGE
 -- 1

 -- Tracker : SESSION_TRACK_TRANSACTION_CHARACTERISTICS
 --

 -- Tracker : SESSION_TRACK_TRANSACTION_STATE
 -- ________

 SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
 -- Tracker : SESSION_TRACK_TRANSACTION_CHARACTERISTICS
 -- SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;

 SET TRANSACTION READ WRITE;
 -- Tracker : SESSION_TRACK_TRANSACTION_CHARACTERISTICS
 -- SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; SET TRANSACTION READ WRITE;

 START TRANSACTION;
 -- Tracker : SESSION_TRACK_TRANSACTION_CHARACTERISTICS
 -- SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; START TRANSACTION READ WRITE;

 -- Tracker : SESSION_TRACK_TRANSACTION_STATE
 -- T_______

 SELECT 1;
 1
 1
 -- Tracker : SESSION_TRACK_TRANSACTION_STATE
 -- T_____S_

 INSERT INTO test.t1 () VALUES();
 -- Tracker : SESSION_TRACK_TRANSACTION_STATE
 -- T___W_S_

 INSERT INTO test.t1 () VALUES(1, RAND());
 -- Tracker : SESSION_TRACK_TRANSACTION_STATE
 -- T___WsS_

 COMMIT;
 -- Tracker : SESSION_TRACK_TRANSACTION_CHARACTERISTICS
 --

 -- Tracker : SESSION_TRACK_TRANSACTION_STATE
 -- ________

 ok

Preceding the note 'START TRANSACTION': commit. statement, two note 'SET TRANSACTION': set-transaction. statements execute that set the isolation level and access mode characteristics for the next transaction. The 'SESSION_TRACK_TRANSACTION_CHARACTERISTICS' value indicates those next-transaction values that have been set.

Following the *note 'COMMIT': commit. statement that ends the transaction, the 'SESSION_TRACK_TRANSACTION_CHARACTERISTICS' value is reported as empty. This indicates that the next-transaction characteristics that were set preceding the start of the transaction have been reset, and that the session defaults apply. To track changes to those session defaults, track the session values of the 'transaction_isolation' and 'transaction_read_only' system variables.

To see information about GTIDs, enable the 'SESSION_TRACK_GTIDS' tracker using the 'session_track_gtids' system system variable.

 File: manual.info.tmp, Node: server-shutdown, Prev: session-state-tracking, Up: mysqld-server

5.1.16 The Server Shutdown Process

The server shutdown process takes place as follows:

  1. The shutdown process is initiated.

    This can occur initiated several ways. For example, a user with the 'SHUTDOWN' privilege can execute a note 'mysqladmin shutdown': mysqladmin. command. note 'mysqladmin': mysqladmin. can be used on any platform supported by MySQL. Other operating system-specific shutdown initiation methods are possible as well: The server shuts down on Unix when it receives a 'SIGTERM' signal. A server running as a service on Windows shuts down when the services manager tells it to.

  2. The server creates a shutdown thread if necessary.

    Depending on how shutdown was initiated, the server might create a thread to handle the shutdown process. If shutdown was requested by a client, a shutdown thread is created. If shutdown is the result of receiving a 'SIGTERM' signal, the signal thread might handle shutdown itself, or it might create a separate thread to do so. If the server tries to create a shutdown thread and cannot (for example, if memory is exhausted), it issues a diagnostic message that appears in the error log:

      Error: Can't create thread to kill server
  3. The server stops accepting new connections.

    To prevent new activity from being initiated during shutdown, the server stops accepting new client connections by closing the handlers for the network interfaces to which it normally listens for connections: the TCP/IP port, the Unix socket file, the Windows named pipe, and shared memory on Windows.

  4. The server terminates current activity.

    For each thread associated with a client connection, the server breaks the connection to the client and marks the thread as killed. Threads die when they notice that they are so marked. Threads for idle connections die quickly. Threads that currently are processing statements check their state periodically and take longer to die. For additional information about thread termination, see note kill::, in particular for the instructions about killed note 'REPAIR TABLE': repair-table. or *note 'OPTIMIZE TABLE': optimize-table. operations on 'MyISAM' tables.

    For threads that have an open transaction, the transaction is rolled back. If a thread is updating a nontransactional table, an operation such as a multiple-row note 'UPDATE': update. or note 'INSERT': insert. may leave the table partially updated because the operation can terminate before completion.

    If the server is a source replication server, it treats threads associated with currently connected replicas like other client threads. That is, each one is marked as killed and exits when it next checks its state.

    If the server is a replica, it stops the I/O and SQL threads, if they are active, before marking client threads as killed. The SQL thread is permitted to finish its current statement (to avoid causing replication problems), and then stops. If the SQL thread is in the middle of a transaction at this point, the server waits until the current replication event group (if any) has finished executing, or until the user issues a note 'KILL QUERY': kill. or note 'KILL CONNECTION': kill. statement. See also *note stop-slave::. Since nontransactional statements cannot be rolled back, in order to guarantee crash-safe replication, only transactional tables should be used.

    Note:

    To guarantee crash safety on the replica, you must run the replica with '--relay-log-recovery' enabled.

    See also *note replica-logs::).

  5. The server shuts down or closes storage engines.

    At this stage, the server flushes the table cache and closes all open tables.

    Each storage engine performs any actions necessary for tables that it manages.

    'InnoDB' flushes its buffer pool to disk (unless 'innodb_fast_shutdown' is 2), writes the current LSN to the tablespace, and terminates its own internal threads. 'MyISAM' flushes any pending index writes for a table.

  6. The server exits.

To provide information to management processes, the server returns one of the exit codes described in the following list. The phrase in parentheses indicates the action taken by systemd in response to the code, for platforms on which systemd is used to manage the server.

 File: manual.info.tmp, Node: data-directory, Next: system-schema, Prev: mysqld-server, Up: server-administration