第5章MySQL服务器管理

目录

5.1 MySQL服务器
5.1.1配置服务器
5.1.2服务器配置默认值
5.1.3服务器配置验证
5.1.4服务器选项,系统变量和状态变量参考
5.1.5服务器系统变量参考
5.1.6服务器状态变量参考
5.1.7服务器命令选项
5.1.8服务器系统变量
5.1.9使用系统变量
5.1.10服务器状态变量
5.1.11服务器SQL模式
5.1.12 IPv6支持
5.1.13 MySQL服务器时区支持
5.1.14服务器端帮助支持
5.1.15客户端会话状态更改的服务器跟踪
5.1.16服务器对信号的响应
5.1.17服务器关闭过程
5.2 MySQL数据目录
5.3 mysql系统架构
5.4 MySQL服务器日志
5.4.1选择常规查询日志和慢查询日志输出目的地
5.4.2错误日志
5.4.3常规查询日志
5.4.4二进制日志
5.4.5慢查询日志
5.4.6 DDL日志
5.4.7服务器日志维护
5.5 MySQL服务器组件
5.5.1安装和卸载组件
5.5.2获取服务器组件信息
5.5.3错误日志组件
5.6 MySQL服务器插件
5.6.1安装和卸载插件
5.6.2获取服务器插件信息
5.6.3 MySQL企业线程池
5.6.4重写器查询重写插件
5.6.5 ddl_rewriter插件
5.6.6版本标记
5.7 MySQL服务器用户定义的函数
5.7.1安装和卸载用户定义的功能
5.7.2获取用户自定义的功能信息
5.8在一台机器上运行多个MySQL实例
5.8.1设置多个数据目录
5.8.2在Windows上运行多个MySQL实例
5.8.3在Unix上运行多个MySQL实例
5.8.4在多服务器环境中使用客户端程序

MySQL服务器( mysqld )是完成MySQL安装中大部分工作的主程序。 本章概述了MySQL Server,并介绍了一般服务器管理:

有关管理主题的其他信息,另请参阅:

5.1 MySQL服务器

mysqld 是MySQL服务器。 以下讨论涵盖了这些MySQL服务器配置主题:

  • 服务器支持的启动选项。 您可以在命令行,配置文件或两者上指定这些选项。

  • 服务器系统变量。 这些变量反映了启动选项的当前状态和值,其中一些可以在服务器运行时进行修改。

  • 服务器状态变量。 这些变量包含有关运行时操作的计数器和统

  • 如何设置服务器SQL模式。 此设置修改SQL语法和语义的某些方面,例如,与其他数据库系统的代码兼容,或控制特定情况下的错误处理。

  • 配置和使用IPv6支持。

  • 配置和使用时区支持。

  • 服务器端帮助功能。

  • 服务器关闭过程。 根据表的类型(事务性或非事务性)以及是否使用复制,存在性能和可靠性考虑因素。

有关在MySQL 8.0中添加,弃用或删除的MySQL服务器变量和选项的列表,请参见 第1.5节“在MySQL 8.0中添加,弃用或删除的服务器和状态变量和选项”

注意

并非所有MySQL服务器二进制文件和配置都支持所有存储引擎。 要了解如何确定MySQL服务器安装支持的存储引擎,请参见 第13.7.6.16节“SHOW ENGINES语法”

5.1.1配置服务器

MySQL服务器 mysqld 有许多命令选项和系统变量,可以在启动时设置它们以配置其操作。 要确定服务器使用的缺省命令选项和系统变量值,请执行以下命令:

外壳> mysqld --verbose --help

该命令生成所有 mysqld 选项和可配置系统变量 的列表 它的输出包括默认选项和变量值,看起来像这样:

abort-slave-event-count 0
allow-suspicious-udfs FALSE
存档ON
自动递增 - 增量1
自动增量偏移1
autocommit TRUE
automatic-sp-privileges TRUE
避免 - 时间升级FALSE
back-log 80
basedir /home/jon/bin/mysql-8.0/
...
tmpdir / tmp
transaction-alloc-block-size 8192
事务隔离REPEATABLE-READ
transaction-prealloc-size 4096
transaction-read-only FALSE
transaction-write-set-extraction OFF
updatable-views-with-limit YES
validate-user-plugins TRUE
详细是真的
等待超时28800

要查看服务器在运行时实际使用的当前系统变量值,请连接到它并执行以下语句:

MySQL的> SHOW VARIABLES;

要查看正在运行的服务器的某些统计和状态指示器,请执行以下语句:

MySQL的> SHOW STATUS;

使用 mysqladmin 命令 也可以使用系统变量和状态信息

shell> mysqladmin variables
shell>mysqladmin extended-status

有关所有命令选项,系统变量和状态变量的完整说明,请参阅以下部分:

可从Performance Schema获得更详细的监控信息; 请参见 第26章, MySQL性能架构 此外,MySQL sys 模式是一组对象,可以方便地访问性能模式收集的数据; 请参见 第27章, MySQL sys Schema

如果在命令行上为 mysqld mysqld_safe 指定了一个选项 ,则它仅对该服务器的调用保持有效。 要在每次运行服务器时使用该选项,请将其放在选项文件中。 请参见 第4.2.2.2节“使用选项文件”

5.1.2服务器配置默认值

MySQL服务器有许多操作参数,您可以使用命令行选项或配置文件(选项文件)在服务器启动时更改这些参数。 也可以在运行时更改许多参数。 有关在启动或运行时设置参数的一般说明,请参见 第5.1.7节“服务器命令选项” 第5.1.8节“服务器系统变量”

在Windows上,MySQL Installer与用户交互,并 my.ini 在基本安装目录中 创建一个名为 默认选项文件的文件。

注意

在Windows上, 可能不会显示 .ini .cnf 选项文件扩展名。

完成安装过程后,您可以随时编辑默认选项文件以修改服务器使用的参数。 例如,要在文件中使用参数设置,该参数设置 # 在行的开头 注释 ,请删除 # ,并在必要时修改参数值。 要禁用设置,请 # 在行的开头 添加 或删除它。

对于非Windows平台,在服务器安装或数据目录初始化过程中不会创建默认选项文件。 按照 第4.2.2.2节“使用选项文件”中 给出的说明创建选项文件 如果没有选项文件,服务器只会以其默认设置启动 - 有关如何检查这些设置 请参见 第5.1.2节“服务器配置默认值”

有关选项文件格式和语法的其他信息,请参见 第4.2.2.2节“使用选项文件”

5.1.3服务器配置验证

从MySQL 8.0.16开始,MySQL Server支持一个 --validate-config 选项,可以在不正常运行模式下运行服务器的情况下检查启动配置是否存在问题:

mysqld --validate-config

如果未找到任何错误,则服务器将以退出代码0终止。如果发现错误,服务器将显示诊断消息并以退出代码1终止。例如:

外壳> mysqld --validate-config --no-such-option
2018-11-05T17:50:12.738919Z 0 [错误] [MY-000068] [服务器]未知
选项'--no-such-option'。
2018-11-05T17:50:12.738962Z 0 [错误] [MY-010119] [服务器]正在中止

一旦发现任何错误,服务器就会终止。 要进行其他检查,请更正初始问题并 --validate-config 再次 运行服务器

对于前面的示例, --validate-config 在显示错误消息时 使用 结果,服务器退出代码为1.警告和信息消息也可能会显示,具体取决于 log_error_verbosity 值,但不会立即生成验证终止或退出代码为1例如,此命令会生成多个警告,这两个警告都会显示。 但是没有错误发生,因此退出代码为0:

外壳> mysqld --validate-config --log_error_verbosity=2
         --read-only=s --transaction_read_only=s
2018-11-05T15:43:18.445863Z 0 [警告] [MY-000076] [服务器]选项
'read_only':无法识别布尔值's'。设置为OFF。
2018-11-05T15:43:18.445882Z 0 [警告] [MY-000076] [服务器]选项
'transaction-read-only':无法识别布尔值's'。设置为OFF。

此命令产生相同的警告,但也是一个错误,因此错误消息与警告一起显示,退出代码为1:

外壳> mysqld --validate-config --log_error_verbosity=2
         --no-such-option --read-only=s --transaction_read_only=s
2018-11-05T15:43:53.152886Z 0 [警告] [MY-000076] [服务器]选项
'read_only':无法识别布尔值's'。设置为OFF。
2018-11-05T15:43:53.152913Z 0 [警告] [MY-000076] [服务器]选项
'transaction-read-only':无法识别布尔值's'。设置为OFF。
2018-11-05T15:43:53.164889Z 0 [错误] [MY-000068] [服务器]未知
选项'--no-such-option'。
2018-11-05T15:43:53.165053Z 0 [错误] [MY-010119] [服务器]中止

--validate-config 选项 的范围 仅限于服务器可以在不经历正常启动过程的情况下执行的配置检查。 因此,配置检查不初始化存储引擎和其他插件,组件等,并且不验证与那些未初始化的子系统相关联的选项。

--validate-config 可以在任何时候使用,但在升级后特别有用,以检查先前与旧服务器一起使用的任何选项是否被升级后的服务器视为已弃用或已过时。 例如, tx_read_only 系统变量在MySQL 5.7中已弃用,在8.0中已删除。 假设MySQL 5.7服务器在其 my.cnf 文件中 使用该系统变量运行 ,然后升级到MySQL 8.0。 运行升级的服务器 --validate-config 以检查配置会产生以下结果:

外壳> mysqld --validate-config
2018-11-05T10:40:02.712141Z 0 [错误] [MY-000067] [服务器]未知变量
'tx_read_only = ON'。
2018-11-05T10:40:02.712178Z 0 [错误] [MY-010119] [服务器]正在中止

--validate-config 可以与 --defaults-file 选项一起 使用, 仅验证特定文件中的选项:

外壳> mysqld --defaults-file=./my.cnf-test --validate-config
2018-11-05T10:40:02.712141Z 0 [错误] [MY-000067] [服务器]未知变量
'tx_read_only = ON'。
2018-11-05T10:40:02.712178Z 0 [错误] [MY-010119] [服务器]正在中止

请记住 --defaults-file ,如果指定,则必须是命令行上的第一个选项。 (执行前面的示例,反转选项顺序会产生一条 --defaults-file 本身未知 的消息 。)

5.1.4服务器选项,系统变量和状态变量参考

下表列出了适用于其中的所有命令行选项,系统变量和状态变量 mysqld

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

有关此表的特定于NDB集群的版本,请参见 第22.3.2.5节“NDB集群mysqld选项和变量参考”

表5.1命令行选项,系统变量和状态变量摘要

名称 CMD线 选项文件 系统变量 状态变量 Var范围 动态
中止,从事件计数
Aborted_clients 全球 没有
Aborted_connects 全球 没有
Acl_cache_items_count 全球 没有
activate_all_roles_on_login 全球
admin_address 全球 没有
admin_port 全球 没有
允许可疑-UDF的
ANSI
审计日志
audit_log_buffer_size 全球 没有
audit_log_compression 全球 没有
audit_log_connection_policy 全球
audit_log_current_session 没有
Audit_log_current_size 全球 没有
audit_log_encryption 全球 没有
Audit_log_event_max_drop_size 全球 没有
Audit_log_events 全球 没有
Audit_log_events_filtered 全球 没有
Audit_log_events_lost 全球 没有
Audit_log_events_written 全球 没有
audit_log_exclude_accounts 全球
audit_log_file 全球 没有
audit_log_filter_id 没有
audit_log_flush 全球
audit_log_format 全球 没有
audit_log_include_accounts 全球
audit_log_policy 全球 没有
audit_log_read_buffer_size 不定 不定
audit_log_rotate_on_size 全球
audit_log_statement_policy 全球
audit_log_strategy 全球 没有
Audit_log_total_size 全球 没有
Audit_log_write_waits 全球 没有
authentication_ldap_sasl_auth_method_name 全球
authentication_ldap_sasl_bind_base_dn 全球
authentication_ldap_sasl_bind_root_dn 全球
authentication_ldap_sasl_bind_root_pwd 全球
authentication_ldap_sasl_ca_path 全球
authentication_ldap_sasl_group_search_attr 全球
authentication_ldap_sasl_group_search_filter 全球
authentication_ldap_sasl_init_pool_size 全球
authentication_ldap_sasl_log_status 全球
authentication_ldap_sasl_max_pool_size 全球
authentication_ldap_sasl_server_host 全球
authentication_ldap_sasl_server_port 全球
authentication_ldap_sasl_tls 全球
authentication_ldap_sasl_user_search_attr 全球
authentication_ldap_simple_auth_method_name 全球
authentication_ldap_simple_bind_base_dn 全球
authentication_ldap_simple_bind_root_dn 全球
authentication_ldap_simple_bind_root_pwd 全球
authentication_ldap_simple_ca_path 全球
authentication_ldap_simple_group_search_attr 全球
authentication_ldap_simple_group_search_filter 全球
authentication_ldap_simple_init_pool_size 全球
authentication_ldap_simple_log_status 全球
authentication_ldap_simple_max_pool_size 全球
authentication_ldap_simple_server_host 全球
authentication_ldap_simple_server_port 全球
authentication_ldap_simple_tls 全球
authentication_ldap_simple_user_search_attr 全球
authentication_windows_log_level 全球 没有
authentication_windows_use_principal_name 全球 没有
auto_generate_certs 全球 没有
auto_increment_increment
auto_increment_offset
自动提交
automatic_sp_privileges 全球
avoid_temporal_upgrade 全球
back_log 全球 没有
BASEDIR 全球 没有
big_tables
bind_address 全球 没有
Binlog_cache_disk_use 全球 没有
binlog_cache_size 全球
Binlog_cache_use 全球 没有
二进制日志校验和
binlog_checksum 全球
binlog_direct_non_transactional_updates
二进制日志-DO-DB
binlog_encryption 全球
binlog_error_action 全球
binlog_expire_logs_seconds 全球
binlog_format
binlog_group_commit_sync_delay 全球
binlog_group_commit_sync_no_delay_count 全球
binlog_gtid_simple_recovery 全球 没有
二进制日志,忽略-DB
binlog_max_flush_queue_time 全球
binlog_order_commits 全球
binlog_rotate_encryption_master_key_at_startup 全球 没有
二进制日志行事件-MAX尺寸 全球 没有
binlog_row_image
binlog_row_metadata 全球
binlog_row_value_options
binlog_rows_query_log_events
Binlog_stmt_cache_disk_use 全球 没有
binlog_stmt_cache_size 全球
Binlog_stmt_cache_use 全球 没有
binlog_transaction_dependency_history_size 全球
binlog_transaction_dependency_tracking 全球
block_encryption_mode
bulk_insert_buffer_size
Bytes_received 没有
Bytes_sent 没有
caching_sha2_password_auto_generate_rsa_keys 全球 没有
caching_sha2_password_private_key_path 全球 没有
caching_sha2_password_public_key_path 全球 没有
Caching_sha2_password_rsa_public_key 全球 没有
character_set_client字符
字符集客户端握手
是character_set_connection
character_set_database (注1)
character_set_filesystem
character_set_results
被character_set_server
character_set_system 全球 没有
character_sets_dir 全球 没有
check_proxy_users 全球
chroot环境
collat​​ion_connection是
collat​​ion_database (注1)
collat​​ion_server的
Com_admin_commands 没有
Com_alter_db 没有
Com_alter_event 没有
Com_alter_function 没有
Com_alter_procedure 没有
Com_alter_resource_group 全球 没有
Com_alter_server 没有
Com_alter_table 没有
Com_alter_tablespace 没有
Com_alter_user 没有
Com_alter_user_default_role 全球 没有
Com_analyze 没有
Com_assign_to_keycache 没有
Com_begin 没有
Com_binlog 没有
Com_call_procedure 没有
Com_change_db 没有
Com_change_master 没有
Com_change_repl_filter 没有
Com_check 没有
Com_checksum 没有
Com_commit 没有
Com_create_db 没有
Com_create_event 没有
Com_create_function 没有
Com_create_index 没有
Com_create_procedure 没有
Com_create_resource_group 全球 没有
Com_create_role 全球 没有
Com_create_server 没有
Com_create_table 没有
Com_create_trigger 没有
Com_create_udf 没有
Com_create_user 没有
Com_create_view 没有
Com_dealloc_sql 没有
Com_delete 没有
Com_delete_multi 没有
Com_do 没有
Com_drop_db 没有
Com_drop_event 没有
Com_drop_function 没有
Com_drop_index 没有
Com_drop_procedure 没有
Com_drop_resource_group 全球 没有
Com_drop_role 全球 没有
Com_drop_server 没有
Com_drop_table 没有
Com_drop_trigger 没有
Com_drop_user 没有
Com_drop_view 没有
Com_empty_query 没有
Com_execute_sql 没有
Com_explain_other 没有
Com_flush 没有
Com_get_diagnostics 没有
Com_grant 没有
Com_grant_roles 全球 没有
Com_group_replication_start 全球 没有
Com_group_replication_stop 全球 没有
Com_ha_close 没有
Com_ha_open 没有
Com_ha_read 没有
Com_help 没有
Com_insert 没有
Com_insert_select 没有
Com_install_component 全球 没有
Com_install_plugin 没有
Com_kill 没有
Com_load 没有
Com_lock_tables 没有
Com_optimize 没有
Com_preload_keys 没有
Com_prepare_sql 没有
Com_purge 没有
Com_purge_before_date 没有
Com_release_savepoint 没有
Com_rename_table 没有
Com_rename_user 没有
Com_repair 没有
Com_replace 没有
Com_replace_select 没有
Com_reset 没有
Com_resignal 没有
Com_revoke 没有
Com_revoke_all 没有
Com_revoke_roles 全球 没有
Com_rollback 没有
Com_rollback_to_savepoint 没有
Com_savepoint 没有
Com_select 没有
Com_set_option 没有
Com_set_resource_group 全球 没有
Com_set_role 全球 没有
Com_show_authors 没有
Com_show_binlog_events 没有
Com_show_binlogs 没有
Com_show_charsets 没有
Com_show_collat​​ions 没有
Com_show_contributors 没有
Com_show_create_db 没有
Com_show_create_event 没有
Com_show_create_func 没有
Com_show_create_proc 没有
Com_show_create_table 没有
Com_show_create_trigger 没有
Com_show_create_user 没有
Com_show_databases 没有
Com_show_engine_logs 没有
Com_show_engine_mutex 没有
Com_show_engine_status 没有
Com_show_errors 没有
Com_show_events 没有
Com_show_fields 没有
Com_show_function_code 没有
Com_show_function_status 没有
Com_show_grants 没有
Com_show_keys 没有
Com_show_master_status 没有
Com_show_ndb_status 没有
Com_show_open_tables 没有
Com_show_plugins 没有
Com_show_privileges 没有
Com_show_procedure_code 没有
Com_show_procedure_status 没有
Com_show_processlist 没有
Com_show_profile 没有
Com_show_profiles 没有
Com_show_relaylog_events 没有
Com_show_slave_hosts 没有
Com_show_slave_status 没有
Com_show_status 没有
Com_show_storage_engines 没有
Com_show_table_status 没有
Com_show_tables 没有
Com_show_triggers 没有
Com_show_variables 没有
Com_show_warnings 没有
Com_shutdown 没有
Com_signal 没有
Com_slave_start 没有
Com_slave_stop 没有
Com_stmt_close 没有
Com_stmt_execute 没有
Com_stmt_fetch 没有
Com_stmt_prepare 没有
Com_stmt_reprepare 没有
Com_stmt_reset 没有
Com_stmt_send_long_data 没有
Com_truncate 没有
Com_uninstall_component 全球 没有
Com_uninstall_plugin 没有
Com_unlock_tables 没有
Com_update 没有
Com_update_multi 没有
Com_xa_commit 没有
Com_xa_end 没有
Com_xa_prepare 没有
Com_xa_recover 没有
Com_xa_rollback 没有
Com_xa_start 没有
completion_type
压缩 会议 没有
concurrent_insert 全球
connect_timeout 全球
Connection_control_delay_generated 全球 没有
connection_control_failed_connections_threshold 全球
connection_control_max_connection_delay 全球
connection_control_min_connection_delay 全球
Connection_errors_accept 全球 没有
Connection_errors_internal 全球 没有
Connection_errors_max_connections 全球 没有
Connection_errors_peer_address 全球 没有
Connection_errors_select 全球 没有
Connection_errors_tcpwrap 全球 没有
连接 全球 没有
安慰
核心文件
core_file 全球 没有
create_admin_listener_thread 全球 没有
Created_tmp_disk_tables 没有
Created_tmp_files 全球 没有
Created_tmp_tables 没有
cte_max_recursion_depth
Current_tls_ca 全球 没有
Current_tls_capath 全球 没有
Current_tls_cert 全球 没有
Current_tls_cipher 全球 没有
Current_tls_ciphersuites 全球 没有
Current_tls_crl 全球 没有
Current_tls_crlpath 全球 没有
Current_tls_key 全球 没有
Current_tls_version 全球 没有
daemon_memcached_enable_binlog 全球 没有
daemon_memcached_engine_lib_name 全球 没有
daemon_memcached_engine_lib_path 全球 没有
daemon_memcached_option 全球 没有
daemon_memcached_r_batch_size 全球 没有
daemon_memcached_w_batch_size 全球 没有
守护进程
DATADIR 全球 没有
日期格式 全球 没有
DATETIME_FORMAT 全球 没有
DDL-重写
调试
debug_sync 会议
调试同步超时
default_authentication_plugin 全球 没有
default_collat​​ion_for_utf8mb4
default_password_lifetime 全球
默认存储引擎
- 变量 default_storage_engine
default_table_encryption
默认时区
default_tmp_storage_engine
default_week_format
默认-额外文件
默认文件
默认基团的后缀
DELAY_KEY_WRITE 全球
Delayed_errors 全球 没有
delayed_insert_limit在 全球
Delayed_insert_threads 全球 没有
delayed_insert_timeout 全球
delayed_queue_size 全球
Delayed_writes 全球 没有
DES密钥文件
disabled_storage_engines 全球 没有
disconnect_on_expired_pa​​ssword 全球 没有
可切断从事件计数
div_precision_increment
dragnet.log_error_filter_rules 全球
dragnet.Status 全球 没有
早期插件负载
启用命名管道
- 变量 named_pipe
end_markers_in_json
执行-GTID一致性 全球
enforce_gtid_consistency 全球
eq_range_index_dive_limit
ERROR_COUNT 会议 没有
事件调度 全球
- 变量 event_scheduler 全球
出口信息
expire_logs_days 全球
explicit_defaults_for_timestamp
外部锁定
- 变量 skip_external_locking
external_user 会议 没有
联合
Firewall_access_denied 全球 没有
Firewall_access_granted 全球 没有
Firewall_cached_entries 全球 没有
红晕 全球
Flush_commands 全球 没有
flush_time 全球
FOREIGN_KEY_CHECKS
ft_boolean_syntax 全球
ft_max_word_len 全球 没有
的ft_min_word_len 全球 没有
ft_query_expansion_limit 全球 没有
ft_stopword_file 全球 没有
GDB
通用日志 全球
- 变量 general_log 全球
general_log_file 全球
group_concat_max_len
group_replication_allow_local_disjoint_gtids_join 全球
group_replication_allow_local_lower_version_join 全球
group_replication_auto_increment_increment 全球
group_replication_autorejoin_tries 全球
group_replication_bootstrap_group 全球
group_replication_communication_debug_options 全球
group_replication_communication_max_message_size 全球
group_replication_components_stop_timeout 全球
group_replication_compression_threshold 全球
group_replication_consistency
group_replication_enforce_update_everywhere_checks 全球
group_replication_exit_state_action 全球
group_replication_flow_control_applier_threshold 全球
group_replication_flow_control_certifier_threshold 全球
group_replication_flow_control_hold_percent 全球
group_replication_flow_control_max_commit_quota 全球
group_replication_flow_control_member_quota_percent 全球
group_replication_flow_control_min_quota 全球
group_replication_flow_control_min_recovery_quota 全球
group_replication_flow_control_mode 全球
group_replication_flow_control_period 全球
group_replication_flow_control_release_percent 全球
group_replication_force_members 全球
group_replication_group_name 全球
group_replication_group_seeds 全球
group_replication_gtid_assignment_block_size 全球
group_replication_ip_whitelist 全球
group_replication_local_address 全球
group_replication_member_expel_timeout 全球
group_replication_member_weight 全球
group_replication_message_cache_size 全球
group_replication_poll_spin_loops 全球
group_replication_primary_member 全球 没有
group_replication_recovery_complete_at 全球
group_replication_recovery_get_public_key 全球
group_replication_recovery_public_key_path 全球
group_replication_recovery_reconnect_interval 全球
group_replication_recovery_retry_count 全球
group_replication_recovery_ssl_ca 全球
group_replication_recovery_ssl_capath 全球
group_replication_recovery_ssl_cert 全球
group_replication_recovery_ssl_cipher 全球
group_replication_recovery_ssl_crl 全球
group_replication_recovery_ssl_crlpath 全球
group_replication_recovery_ssl_key 全球
group_replication_recovery_ssl_verify_server_cert 全球
group_replication_recovery_use_ssl 全球
group_replication_single_primary_mode 全球
group_replication_ssl_mode 全球
group_replication_start_on_boot 全球
group_replication_transaction_size_limit 全球
group_replication_unreachable_majority_timeout 全球
gtid_executed 不定 没有
GTID执行的压缩周期
- 变量 gtid_executed_compression_period
gtid_executed_compression_period 全球
GTID模式 全球
- 变量 gtid_mode 全球
gtid_mode 全球
gtid_next 会议
gtid_owned 没有
gtid_purged 全球
Handler_commit 没有
Handler_delete 没有
Handler_discover 没有
Handler_external_lock 没有
Handler_mrr_init 没有
Handler_prepare 没有
Handler_read_first 没有
Handler_read_key 没有
Handler_read_last 没有
Handler_read_next 没有
Handler_read_prev 没有
Handler_read_rnd 没有
Handler_read_rnd_next 没有
Handler_rollback 没有
Handler_savepoint 没有
Handler_savepoint_rollback 没有
Handler_update 没有
Handler_write 没有
have_compress 全球 没有
have_crypt 全球 没有
have_dynamic_loading 全球 没有
have_geometry 全球 没有
have_openssl 全球 没有
have_profiling 全球 没有
have_query_cache 全球 没有
have_rtree_keys 全球 没有
have_ssl 全球 没有
have_statement_timeout 全球 没有
have_symlink 全球 没有
救命
histogram_generation_max_mem_size
host_cache_size 全球
主机名 全球 没有
身分 会议
忽略-内置-的InnoDB 全球 没有
- 变量 ignore_builtin_innodb 全球 没有
immediate_server_version 会议
information_schema_stats_expiry
init_connect 全球
初始化文件 全球 没有
- 变量 init_file 全球 没有
init_slave 全球
初始化
初始化不安全
InnoDB的
innodb_adaptive_flushing 全球
innodb_adaptive_flushing_lwm 全球
innodb_adaptive_hash_index 全球
innodb_adaptive_hash_index_parts 全球 没有
innodb_adaptive_max_sleep_delay 全球
innodb_api_bk_commit_interval 全球
innodb_api_disable_rowlock 全球 没有
innodb_api_enable_binlog 全球 没有
innodb_api_enable_mdl 全球 没有
innodb_api_trx_level 全球
innodb_autoextend_increment 全球
innodb_autoinc_lock_mode 全球 没有
Innodb_available_undo_logs 全球 没有
innodb_background_drop_list_empty 全球
Innodb_buffer_pool_bytes_data 全球 没有
Innodb_buffer_pool_bytes_dirty 全球 没有
innodb_buffer_pool_chunk_size 全球 没有
innodb_buffer_pool_debug 全球 没有
innodb_buffer_pool_dump_at_shutdown 全球
innodb_buffer_pool_dump_now 全球
innodb_buffer_pool_dump_pct 全球
Innodb_buffer_pool_dump_status 全球 没有
innodb_buffer_pool_filename 全球
innodb_buffer_pool_in_core_file 全球
innodb_buffer_pool_instances 全球 没有
innodb_buffer_pool_load_abort 全球
innodb_buffer_pool_load_at_startup 全球 没有
innodb_buffer_pool_load_now 全球
Innodb_buffer_pool_load_status 全球 没有
Innodb_buffer_pool_pages_data 全球 没有
Innodb_buffer_pool_pages_dirty 全球 没有
Innodb_buffer_pool_pages_flushed 全球 没有
Innodb_buffer_pool_pages_free 全球 没有
Innodb_buffer_pool_pages_latched 全球 没有
Innodb_buffer_pool_pages_misc 全球 没有
Innodb_buffer_pool_pages_total 全球 没有
Innodb_buffer_pool_read_ahead 全球 没有
Innodb_buffer_pool_read_ahead_evicted 全球 没有
Innodb_buffer_pool_read_ahead_rnd 全球 没有
Innodb_buffer_pool_read_requests 全球 没有
Innodb_buffer_pool_reads 全球 没有
Innodb_buffer_pool_resize_status 全球 没有
innodb_buffer_pool_size 全球
Innodb_buffer_pool_wait_free 全球 没有
Innodb_buffer_pool_write_requests 全球 没有
innodb_change_buffer_max_size 全球
innodb_change_buffering 全球
innodb_change_buffering_debug 全球
innodb_checkpoint_disabled 全球
innodb_checksum_algorithm 全球
innodb_cmp_per_index_enabled 全球
innodb_commit_concurrency 全球
innodb_compress_debug 全球
innodb_compression_failure_threshold_pct 全球
innodb_compression_level 全球
innodb_compression_pad_pct_max 全球
innodb_concurrency_tickets 全球
innodb_data_file_path中 全球 没有
Innodb_data_fsyncs 全球 没有
innodb_data_home_dir 全球 没有
Innodb_data_pending_fsyncs 全球 没有
Innodb_data_pending_reads 全球 没有
Innodb_data_pending_writes 全球 没有
Innodb_data_read 全球 没有
Innodb_data_reads 全球 没有
Innodb_data_writes 全球 没有
Innodb_data_written 全球 没有
Innodb_dblwr_pages_written 全球 没有
Innodb_dblwr_writes 全球 没有
innodb_ddl_log_crash_reset_debug 全球
innodb_deadlock_detect 全球
innodb_dedicated_server 全球 没有
innodb_default_row_format 全球
innodb_directories 全球 没有
innodb_disable_sort_file_cache 全球
innodb_doublewrite 全球 没有
innodb_fast_shutdown 全球
innodb_fil_make_page_dirty_debug 全球
innodb_file_per_table 全球
innodb_fill_factor 全球
innodb_flush_log_at_timeout 全球
的innodb_flush_log_at_trx_commit 全球
innodb_flush_method 全球 没有
innodb_flush_neighbors 全球
innodb_flush_sync 全球
innodb_flushing_avg_loops 全球
innodb_force_load_corrupted 全球 没有
innodb_force_recovery 全球 没有
innodb_fsync_threshold 全球
innodb_ft_aux_table 全球
innodb_ft_cache_size 全球 没有
innodb_ft_enable_diag_print 全球
innodb_ft_enable_stopword
innodb_ft_max_token_size 全球 没有
innodb_ft_min_token_size 全球 没有
innodb_ft_num_word_optimize 全球
innodb_ft_result_cache_limit 全球
innodb_ft_server_stopword_table 全球
innodb_ft_sort_pll_degree 全球 没有
innodb_ft_total_cache_size 全球 没有
innodb_ft_user_stopword_table
Innodb_have_atomic_builtins 全球 没有
innodb_io_capacity 全球
innodb_io_capacity_max 全球
innodb_limit_optimistic_insert_debug 全球
innodb_lock_wait_timeout
innodb_log_buffer_size 全球 不定
innodb_log_checkpoint_fuzzy_now 全球
innodb_log_checkpoint_now 全球
innodb_log_checksums 全球
innodb_log_compressed_pa​​ges 全球
innodb_log_file_size 全球 没有
innodb_log_files_in_group 全球 没有
innodb_log_group_home_dir 全球 没有
innodb_log_spin_cpu_abs_lwm 全球
innodb_log_spin_cpu_pct_hwm 全球
innodb_log_wait_for_flush_spin_hwm 全球
Innodb_log_waits 全球 没有
innodb_log_write_ahead_size 全球
Innodb_log_write_requests 全球 没有
Innodb_log_writes 全球 没有
innodb_lru_scan_depth 全球
innodb_max_dirty_pages_pct 全球
innodb_max_dirty_pages_pct_lwm 全球
innodb_max_purge_lag 全球
innodb_max_purge_lag_delay 全球
innodb_max_undo_log_size 全球
innodb_merge_threshold_set_all_debug 全球
innodb_monitor_disable 全球
innodb_monitor_enable 全球
innodb_monitor_reset 全球
innodb_monitor_reset_all 全球
Innodb_num_open_files 全球 没有
innodb_numa_interleave 全球 没有
innodb_old_blocks_pct 全球
innodb_old_blocks_time 全球
innodb_online_alter_log_max_size 全球
innodb_open_files 全球 没有
innodb_optimize_fulltext_only 全球
Innodb_os_log_fsyncs 全球 没有
Innodb_os_log_pending_fsyncs 全球 没有
Innodb_os_log_pending_writes 全球 没有
Innodb_os_log_written 全球 没有
innodb_page_cleaners 全球 没有
Innodb_page_size 全球 没有
innodb_page_size 全球 没有
Innodb_pages_created 全球 没有
Innodb_pages_read 全球 没有
Innodb_pages_written 全球 没有
innodb_parallel_read_threads 会议
innodb_print_all_deadlocks 全球
innodb_print_ddl_logs 全球
innodb_purge_batch_size 全球
innodb_purge_rseg_truncate_frequency 全球
innodb_purge_threads 全球 没有
innodb_random_read_ahead 全球
innodb_read_ahead_threshold 全球
innodb_read_io_threads 全球 没有
innodb_read_only 全球 没有
innodb_redo_log_encrypt 全球
innodb_replication_delay 全球
innodb_rollback_on_timeout 全球 没有
innodb_rollback_segments 全球
Innodb_row_lock_current_waits 全球 没有
Innodb_row_lock_time 全球 没有
Innodb_row_lock_time_avg 全球 没有
Innodb_row_lock_time_max 全球 没有
Innodb_row_lock_waits 全球 没有
Innodb_rows_deleted 全球 没有
Innodb_rows_inserted 全球 没有
Innodb_rows_read 全球 没有
Innodb_rows_updated 全球 没有
innodb_saved_pa​​ge_number_debug 全球
innodb_scan_directories 全球 没有
innodb_sort_buffer_size 全球 没有
innodb_spin_wait_delay 全球
innodb_spin_wait_pause_multiplier 全球
innodb_stats_auto_recalc 全球
innodb_stats_include_delete_marked 全球
innodb_stats_method 全球
innodb_stats_on_metadata 全球
innodb_stats_persistent 全球
innodb_stats_persistent_sample_pages 全球
innodb_stats_transient_sample_pages 全球
InnoDB的状态文件
innodb_status_output 全球
innodb_status_output_locks 全球
innodb_strict_mode
innodb_sync_array_size 全球 没有
innodb_sync_debug 全球 没有
innodb_sync_spin_loops 全球
innodb_table_locks
innodb_temp_data_file_path 全球 没有
innodb_temp_tablespaces_dir 全球 没有
innodb_thread_concurrency参数 全球
innodb_thread_sleep_delay 全球
innodb_tmpdir
Innodb_truncated_status_writes 全球 没有
innodb_trx_purge_view_update_only_debug 全球
innodb_trx_rseg_n_slots_debug 全球
innodb_undo_directory 全球 没有
innodb_undo_log_encrypt 全球
innodb_undo_log_truncate 全球
innodb_undo_logs 全球
innodb_undo_tablespaces 全球 不定
innodb_use_native_aio 全球 没有
innodb_version 全球 没有
innodb_write_io_threads 全球 没有
INSERT_ID 会议
安装
安装手动
interactive_timeout
internal_tmp_disk_storage_engine 全球
internal_tmp_mem_storage_engine
join_buffer_size
keep_files_on_create
Key_blocks_not_flushed 全球 没有
Key_blocks_unused 全球 没有
Key_blocks_used 全球 没有
key_buffer_size的 全球
key_cache_age_threshold 全球
key_cache_block_size 全球
key_cache_division_limit 全球
Key_read_requests 全球 没有
Key_reads 全球 没有
Key_write_requests 全球 没有
Key_writes将 全球 没有
keyring_aws_cmk_id 全球
keyring_aws_conf_file 全球 没有
keyring_aws_data_file 全球 没有
keyring_aws_region 全球
keyring_encrypted_file_data 全球
keyring_encrypted_file_password 全球
keyring_file_data 全球
钥匙圈迁移目的地
钥匙圈迁移主机
钥匙圈迁移密码
钥匙圈迁移端口
钥匙圈迁移插座
钥匙圈迁移源
钥匙圈迁移用户
keyring_okv_conf_dir 全球
keyring_operations 全球
语言 全球 没有
large_files_support 全球 没有
large_page_size 全球 没有
大型网页 全球 没有
- 变量 large_pages 全球 没有
LAST_INSERT_ID 会议
Last_query_cost 会议 没有
Last_query_partial_plans 会议 没有
LC-消息
- 变量 lc_messages
LC-消息-DIR 全球 没有
- 变量 lc_messages_dir 全球 没有
lc_time_names
执照 全球 没有
local_infile 全球
本地服务
的lock_order 全球 没有
lock_order_debug_loop 全球 没有
lock_order_debug_missing_arc 全球 没有
lock_order_debug_missing_key 全球 没有
lock_order_debug_missing_unlock 全球 没有
lock_order_dependencies 全球 没有
lock_order_extra_dependencies 全球 没有
lock_order_output_directory 全球 没有
lock_order_print_txt 全球 没有
lock_order_trace_loop 全球 没有
lock_order_trace_missing_arc 全球 没有
lock_order_trace_missing_key 全球 没有
lock_order_trace_missing_unlock 全球 没有
lock_wait_timeout
Locked_connects 全球 没有
locked_in_memory 全球 没有
登录斌
log_bin 全球 没有
log_bin_basename 全球 没有
登录斌指数
log_bin_index 全球 没有
登录彬信任功能创造者 全球
- 变量 log_bin_trust_function_creators 全球
登录斌用-V1-行活动 全球 没有
- 变量 log_bin_use_v1_row_events 全球 没有
log_bin_use_v1_row_events 全球 没有
log_builtin_as_identified_by_password 全球
登录错误 全球 没有
- 变量 log_error 全球 没有
log_error_filter_rules 全球
log_error_services 全球
log_error_suppression_list 全球
log_error_verbosity 全球
登录ISAM
log_output 全球
日志查询,未使用的索引 全球
- 变量 log_queries_not_using_indexes 全球
登录生
日志短格式
登录奴隶更新 全球 没有
- 变量 log_slave_updates 全球 没有
log_slave_updates 全球 没有
log_slow_admin_statements 全球
log_slow_extra 全球
log_slow_slave_statements 全球
log_statements_unsafe_for_binlog 全球
log_syslog 全球
log_syslog_facility 全球
log_syslog_include_pid 全球
log_syslog_tag 全球
登录-TC
登录-TC-大小
log_throttle_queries_not_using_indexes 全球
log_timestamps 全球
日志警告 全球
- 变量 log_warnings 全球
long_query_time时间
低优先级的更新
- 变量 low_priority_updates
lower_case_file_system 全球 没有
的lower_case_table_names 全球 没有
mandatory_roles 全球
主信息文件
主信息存储库
- 变量 master_info_repository
master_info_repository 全球
主重试次数
主验证校验和
- 变量 master_verify_checksum
master_verify_checksum 全球
max_allowed_pa​​cket的
max_binlog_cache_size 全球
MAX-二进制日志转储事件
max_binlog_size 全球
max_binlog_stmt_cache_size 全球
max_connect_errors次 全球
MAX_CONNECTIONS 全球
max_delayed_threads
max_digest_length 全球 没有
max_error_count
的max_execution_time
Max_execution_time_exceeded 没有
Max_execution_time_set 没有
Max_execution_time_set_failed 没有
max_heap_table_size
max_insert_delayed_threads
使用max_join_size
max_length_for_sort_data
max_points_in_geometry
max_prepared_stmt_count 全球
max_relay_log_size 全球
max_seeks_for_key
max_sort_length个
max_sp_recursion_depth
max_tmp_tables
Max_used_connections 全球 没有
Max_used_connections_time 全球 没有
MAX_USER_CONNECTIONS
max_write_lock_count 全球
mecab_charset 全球 没有
mecab_rc_file 全球 没有
MEMLOCK
- 变量 locked_in_memory
metadata_locks_cache_size 全球 没有
metadata_locks_hash_instances 全球 没有
分钟审查行限
- 变量 min_examined_row_limit
multi_range_count
的myisam块大小
myisam_data_pointer_size 全球
myisam_max_sort_file_size 全球
myisam_mmap_size 全球 没有
MyISAM数据-恢复选项
- 变量 myisam_recover_options
myisam_recover_options 全球 没有
myisam_repair_threads
myisam_sort_buffer_size
myisam_stats_method
myisam_use_mmap 全球
mysql_firewall_mode 全球
mysql_firewall_trace 全球
mysql_native_password_proxy_users 全球
mysqlx
Mysqlx_aborted_clients 全球 没有
Mysqlx_address 全球 没有
mysqlx_bind_address 全球 没有
Mysqlx_bytes_received 没有
Mysqlx_bytes_sent 没有
mysqlx_connect_timeout 全球
Mysqlx_connection_accept_errors 没有
Mysqlx_connection_errors 没有
Mysqlx_connections_accepted 全球 没有
Mysqlx_connections_closed 全球 没有
Mysqlx_connections_rejected 全球 没有
Mysqlx_crud_create_view 没有
Mysqlx_crud_delete 没有
Mysqlx_crud_drop_view 没有
Mysqlx_crud_find 没有
Mysqlx_crud_insert 没有
Mysqlx_crud_modify_view 没有
Mysqlx_crud_update 没有
Mysqlx_cursor_close 没有
Mysqlx_cursor_fetch 没有
Mysqlx_cursor_open 没有
mysqlx_document_id_unique_prefix 全球
mysqlx_enable_hello_notice 全球
Mysqlx_errors_sent 没有
Mysqlx_errors_unknown_message_type 没有
Mysqlx_expect_close 没有
Mysqlx_expect_open 没有
mysqlx_idle_worker_thread_timeout 全球
Mysqlx_init_error 没有
mysqlx_interactive_timeout 全球
mysqlx_max_allowed_pa​​cket 全球
mysqlx_max_connections 全球
mysqlx_min_worker_threads 全球
Mysqlx_notice_global_sent 没有
Mysqlx_notice_other_sent 没有
Mysqlx_notice_warning_sent 没有
Mysqlx_notified_by_group_replication 没有
Mysqlx_port 全球 没有
mysqlx_port 全球 没有
mysqlx_port_open_timeout 全球 没有
Mysqlx_prep_deallocate 没有
Mysqlx_prep_execute 没有
Mysqlx_prep_prepare 没有
mysqlx_read_timeout 会议
Mysqlx_rows_sent 没有
Mysqlx_sessions 全球 没有
Mysqlx_sessions_accepted 全球 没有
Mysqlx_sessions_closed 全球 没有
Mysqlx_sessions_fatal_error 全球 没有
Mysqlx_sessions_killed 全球 没有
Mysqlx_sessions_rejected 全球 没有
Mysqlx_socket 全球 没有
mysqlx_socket 全球 没有
Mysqlx_ssl_accept_renegotiates 全球 没有
Mysqlx_ssl_accepts 全球 没有
Mysqlx_ssl_active 没有
mysqlx_ssl_ca 全球 没有
mysqlx_ssl_capath 全球 没有
mysqlx_ssl_cert 全球 没有
Mysqlx_ssl_cipher 没有
mysqlx_ssl_cipher 全球 没有
Mysqlx_ssl_cipher_list 没有
mysqlx_ssl_crl 全球 没有
mysqlx_ssl_crlpath 全球 没有
Mysqlx_ssl_ctx_verify_depth 没有
Mysqlx_ssl_ctx_verify_mode 没有
Mysqlx_ssl_finished_accepts 全球 没有
mysqlx_ssl_key 全球 没有
Mysqlx_ssl_server_not_after 全球 没有
Mysqlx_ssl_server_not_before 全球 没有
Mysqlx_ssl_verify_depth 全球 没有
Mysqlx_ssl_verify_mode 全球 没有
Mysqlx_ssl_version 没有
Mysqlx_stmt_create_collection 没有
Mysqlx_stmt_create_collection_index 没有
Mysqlx_stmt_disable_notices 没有
Mysqlx_stmt_drop_collection 没有
Mysqlx_stmt_drop_collection_index 没有
Mysqlx_stmt_enable_notices 没有
Mysqlx_stmt_ensure_collection 没有
Mysqlx_stmt_execute_mysqlx 没有
Mysqlx_stmt_execute_sql 没有
Mysqlx_stmt_execute_xplugin 没有
Mysqlx_stmt_kill_client 没有
Mysqlx_stmt_list_clients 没有
Mysqlx_stmt_list_notices 没有
Mysqlx_stmt_list_objects 没有
Mysqlx_stmt_ping 没有
mysqlx_wait_timeout 会议
Mysqlx_worker_threads 全球 没有
Mysqlx_worker_threads_active 全球 没有
mysqlx_write_timeout 会议
named_pipe 全球 没有
named_pipe_full_access_group 全球 没有
NDB-允许,复制,ALTER表
Ndb_api_bytes_received_count 全球 没有
Ndb_api_bytes_received_count_session 会议 没有
Ndb_api_bytes_received_count_slave 全球 没有
Ndb_api_bytes_sent_count 全球 没有
Ndb_api_bytes_sent_count_session 会议 没有
Ndb_api_bytes_sent_count_slave 全球 没有
Ndb_api_event_bytes_count 全球 没有
Ndb_api_event_bytes_count_injector 全球 没有
Ndb_api_event_data_count 全球 没有
Ndb_api_event_data_count_injector 全球 没有
Ndb_api_event_nondata_count 全球 没有
Ndb_api_event_nondata_count_injector 全球 没有
Ndb_api_pk_op_count 全球 没有
Ndb_api_pk_op_count_session 会议 没有
Ndb_api_pk_op_count_slave 全球 没有
Ndb_api_pruned_scan_count