Aborted_clients |
Global |
由于客户端没有正确关闭连接导致客户端终止而中断的连接数 |
Aborted_connects |
Global |
试图连接到MySQL服务器而失败的连接数 |
Binlog_cache_disk_use |
Global |
使用临时二进制日志缓存但超过binlog_cache_size值并使用临时文件来保存事务中的语句的事务数量 |
Binlog_cache_use |
Global |
使用临时二进制日志缓存的事务数量 |
Binlog_stmt_cache_disk_use |
|
|
Binlog_stmt_cache_use |
|
|
Bytes_received |
Both |
从所有客户端接收到的字节数。 |
Bytes_sent |
Both |
发送给所有客户端的字节数。 |
Com_admin_commands |
|
|
Com_assign_to_keycache |
|
|
Com_alter_db |
|
|
Com_alter_db_upgrade |
|
|
Com_alter_event |
|
|
Com_alter_function |
|
|
Com_alter_instance |
|
|
Com_alter_procedure |
|
|
Com_alter_server |
|
|
Com_alter_table |
|
|
Com_alter_tablespace |
|
|
Com_alter_user |
|
|
Com_analyze |
|
|
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_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_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_ha_close |
|
|
Com_ha_open |
|
|
Com_ha_read |
|
|
Com_help |
|
|
Com_insert |
|
|
Com_insert_select |
|
|
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_rollback |
|
|
Com_rollback_to_savepoint |
|
|
Com_savepoint |
|
|
Com_select |
|
|
Com_set_option |
|
|
Com_signal |
|
|
Com_show_binlog_events |
|
|
Com_show_binlogs |
|
|
Com_show_charsets |
|
|
Com_show_collations |
|
|
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_databases |
|
|
Com_show_engine_logs |
|
|
Com_show_engine_mutex |
|
|
Com_show_engine_status |
|
|
Com_show_events |
|
|
Com_show_errors |
|
|
Com_show_fields |
|
|
Com_show_function_code |
|
|
Com_show_function_status |
|
|
Com_show_grants |
|
|
Com_show_keys |
|
|
Com_show_master_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_show_create_user |
|
|
Com_shutdown |
|
|
Com_slave_start |
|
|
Com_slave_stop |
|
|
Com_group_replication_start |
|
|
Com_group_replication_stop |
|
|
Com_stmt_execute |
|
|
Com_stmt_close |
|
|
Com_stmt_fetch |
|
|
Com_stmt_prepare |
|
|
Com_stmt_reset |
|
|
Com_stmt_send_long_data |
|
|
Com_truncate |
|
|
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 |
|
|
Com_stmt_reprepare |
|
|
Compression |
Session |
客户端与服务器之间是否启用压缩协议 |
Connection_errors_accept |
|
|
Connection_errors_internal |
|
|
Connection_errors_max_connections |
|
|
Connection_errors_peer_address |
|
|
Connection_errors_select |
|
|
Connection_errors_tcpwrap |
|
|
Connections |
Global |
试图连接到(不管是否成功)MySQL服务器的连接数 |
Created_tmp_disk_tables |
Both |
服务器执行语句时在硬盘上自动创建的临时表的数量 |
Created_tmp_files |
Global |
mysqld已经创建的临时文件的数量 |
Created_tmp_tables |
Both |
服务器执行语句时自动创建的内存中的临时表的数量。如果Created_tmp_disk_tables较大,你可能要增加tmp_table_size值使临时 表基于内存而不基于硬盘 |
Delayed_errors |
Global |
用INSERT DELAYED写的出现错误的行数(可能为duplicate key)。 |
Delayed_insert_threads |
Global |
使用的INSERT DELAYED处理器线程数。 |
Delayed_writes |
Global |
写入的INSERT DELAYED行数 |
Flush_commands |
Global |
执行的FLUSH语句数。 |
Handler_commit |
Both |
内部提交语句数 |
Handler_delete |
Both |
行从表中删除的次数。 |
Handler_discover |
Both |
MySQL服务器可以问NDB CLUSTER存储引擎是否知道某一名字的表。这被称作发现。Handler_discover说明通过该方法发现的次数。 |
Handler_external_lock |
|
|
Handler_mrr_init |
|
|
Handler_prepare |
Both |
A counter for the prepare phase of two-phase commit operations. |
Handler_read_first |
Both |
索引中第一条被读的次数。如果较高,它建议服务器正执行大量全索引扫描;例如,SELECT col1 FROM foo,假定col1有索引。 |
Handler_read_key |
Both |
根据键读一行的请求数。如果较高,说明查询和表的索引正确。 |
Handler_read_last |
Both |
|
Handler_read_next |
Both |
按照键顺序读下一行的请求数。如果你用范围约束或如果执行索引扫描来查询索引列,该值增加。 |
Handler_read_prev |
Both |
按照键顺序读前一行的请求数。该读方法主要用于优化ORDER BY ... DESC。 |
Handler_read_rnd |
Both |
根据固定位置读一行的请求数。如果你正执行大量查询并需要对结果进行排序该值较高。你可能使用了大量需要MySQL扫描整个表的查询或你的连接没有正确使用键。 |
Handler_read_rnd_next |
Both |
在数据文件中读下一行的请求数。如果你正进行大量的表扫描,该值较高。通常说明你的表索引不正确或写入的查询没有利用索引。 |
Handler_rollback |
Both |
内部ROLLBACK语句的数量。 |
Handler_savepoint |
Both |
在一个存储引擎放置一个保存点的请求数量。 |
Handler_savepoint_rollback |
Both |
在一个存储引擎的要求回滚到一个保存点数目。 |
Handler_update |
Both |
在表内更新一行的请求数。 |
Handler_write |
Both |
在表内插入一行的请求数。 |
Innodb_buffer_pool_dump_status |
Global |
|
Innodb_buffer_pool_load_status |
Global |
|
Innodb_buffer_pool_resize_status |
Global |
|
Innodb_buffer_pool_pages_data |
Global |
包含数据的页数(脏或干净)。 |
Innodb_buffer_pool_bytes_data |
Global |
|
Innodb_buffer_pool_pages_dirty |
Global |
当前的脏页数。 |
Innodb_buffer_pool_bytes_dirty |
Global |
|
Innodb_buffer_pool_pages_flushed |
Global |
要求清空的缓冲池页数 |
Innodb_buffer_pool_pages_free |
Global |
空页数。 |
Innodb_buffer_pool_pages_latched |
Global |
在InnoDB缓冲池中锁定的页数。这是当前正读或写或由于其它原因不能清空或删除的页数。 |
Innodb_buffer_pool_pages_misc |
Global |
忙的页数,因为它们已经被分配优先用作管理,例如行锁定或适用的哈希索引。该值还可以计算为Innodb_buffer_pool_pages_total - Innodb_buffer_pool_pages_free - Innodb_buffer_pool_pages_data。 |
Innodb_buffer_pool_pages_total |
Global |
缓冲池总大小(页数)。 |
Innodb_buffer_pool_read_ahead_rnd |
Global |
InnoDB初始化的“随机”read-aheads数。当查询以随机顺序扫描表的一大部分时发生。 |
Innodb_buffer_pool_read_ahead |
Global |
|
Innodb_buffer_pool_read_ahead_evicted |
Global |
|
Innodb_buffer_pool_read_ahead_seq |
Global |
InnoDB初始化的顺序read-aheads数。当InnoDB执行顺序全表扫描时发生。 |
Innodb_buffer_pool_read_requests |
Global |
InnoDB已经完成的逻辑读请求数。 |
Innodb_buffer_pool_reads |
Global |
不能满足InnoDB必须单页读取的缓冲池中的逻辑读数量。 |
Innodb_buffer_pool_wait_free |
Global |
一般情况,通过后台向InnoDB缓冲池写。但是,如果需要读或创建页,并且没有干净的页可用,则它还需要先等待页面清空。该计数器对等待实例进行记数。如果已经适当设置缓冲池大小,该值应小。 |
Innodb_buffer_pool_write_requests |
Global |
向InnoDB缓冲池的写数量。 |
Innodb_data_fsyncs |
Global |
fsync()操作数。 |
Innodb_data_pending_fsyncs |
Global |
当前挂起的fsync()操作数。 |
Innodb_data_pending_reads |
Global |
当前挂起的读数。 |
Innodb_data_pending_writes |
Global |
当前挂起的写数。 |
Innodb_data_read |
Global |
至此已经读取的数据数量(字节)。 |
Innodb_data_reads |
Global |
数据读总数量。 |
Innodb_data_writes |
Global |
数据写总数量。 |
Innodb_data_written |
Global |
至此已经写入的数据量(字节)。 |
Innodb_dblwr_pages_written |
Global |
已经执行的双写操作数量 |
Innodb_dblwr_writes |
Global |
双写操作已经写好的页数 |
Innodb_log_waits |
Global |
我们必须等待的时间,因为日志缓冲区太小,我们在继续前必须先等待对它清空 |
Innodb_log_write_requests |
Global |
日志写请求数。 |
Innodb_log_writes |
Global |
向日志文件的物理写数量。 |
Innodb_os_log_fsyncs |
Global |
向日志文件完成的fsync()写数量。 |
Innodb_os_log_pending_fsyncs |
Global |
挂起的日志文件fsync()操作数量。 |
Innodb_os_log_pending_writes |
Global |
挂起的日志文件写操作 |
Innodb_os_log_written |
Global |
写入日志文件的字节数。 |
Innodb_page_size |
Global |
编译的InnoDB页大小(默认16KB)。许多值用页来记数;页的大小很容易转换为字节。 |
Innodb_pages_created |
Global |
创建的页数。 |
Innodb_pages_read |
Global |
读取的页数。 |
Innodb_pages_written |
Global |
写入的页数。 |
Innodb_row_lock_current_waits |
Global |
当前等待的待锁定的行数。 |
Innodb_row_lock_time |
Global |
行锁定花费的总时间,单位毫秒。 |
Innodb_row_lock_time_avg |
Global |
行锁定的平均时间,单位毫秒。 |
Innodb_row_lock_time_max |
Global |
行锁定的最长时间,单位毫秒。 |
Innodb_row_lock_waits |
Global |
一行锁定必须等待的时间数。 |
Innodb_rows_deleted |
Global |
从InnoDB表删除的行数。 |
Innodb_rows_inserted |
Global |
插入到InnoDB表的行数。 |
Innodb_rows_read |
Global |
从InnoDB表读取的行数。 |
Innodb_rows_updated |
Global |
InnoDB表内更新的行数。 |
Innodb_num_open_files |
Global |
|
Innodb_truncated_status_writes |
Global |
|
Innodb_available_undo_logs |
Global |
|
Key_blocks_not_flushed |
Global |
键缓存内已经更改但还没有清空到硬盘上的键的数据块数量。 |
Key_blocks_unused |
Global |
键缓存内未使用的块数量。你可以使用该值来确定使用了多少键缓存 |
Key_blocks_used |
Global |
键缓存内使用的块数量。该值为高水平线标记,说明已经同时最多使用了多少块。 |
Key_read_requests |
Global |
从缓存读键的数据块的请求数。 |
Key_reads |
Global |
从硬盘读取键的数据块的次数。如果Key_reads较大,则Key_buffer_size值可能太小。可以用Key_reads/Key_read_requests计算缓存损失率。 |
Key_write_requests |
Global |
将键的数据块写入缓存的请求数。 |
Key_writes |
Global |
向硬盘写入将键的数据块的物理写操作的次数。 |
Last_query_cost |
Session |
用查询优化器计算的最后编译的查询的总成本。用于对比同一查询的不同查询方案的成本。默认值0表示还没有编译查询。 默认值是0。Last_query_cost具有会话范围。 |
Last_query_partial_plans |
|
|
Locked_connects |
|
|
Max_execution_time_exceeded |
|
|
Max_execution_time_set |
|
|
Max_execution_time_set_failed |
|
|
Max_used_connections |
Global |
服务器启动后已经同时使用的连接的最大数量。 |
Max_used_connections_time |
|
|
Not_flushed_delayed_rows |
Global |
等待写入INSERT DELAY队列的行数。 |
Ongoing_anonymous_transaction_count |
|
|
Open_files |
Global |
打开的文件的数目。 |
Open_streams |
Global |
打开的流的数量(主要用于记录)。 |
Open_table_definitions |
Global |
缓存的.frm文件数量 |
Open_tables |
Both |
当前打开的表的数量。 |
Opened_files |
Global |
文件打开的数量。不包括诸如套接字或管道其他类型的文件。 也不包括存储引擎用来做自己的内部功能的文件。 |
Opened_table_definitions |
Both |
已经缓存的.frm文件数量 |
Opened_tables |
Both |
已经打开的表的数量。如果Opened_tables较大,table_cache 值可能太小。 |
Performance_schema_accounts_lost |
|
|
Performance_schema_cond_classes_lost |
|
|
Performance_schema_cond_instances_lost |
|
|
Performance_schema_digest_lost |
|
|
Performance_schema_file_classes_lost |
|
|
Performance_schema_file_handles_lost |
|
|
Performance_schema_file_instances_lost |
|
|
Performance_schema_hosts_lost |
|
|
Performance_schema_index_stat_lost |
|
|
Performance_schema_locker_lost |
|
|
Performance_schema_memory_classes_lost |
|
|
Performance_schema_metadata_lock_lost |
|
|
Performance_schema_mutex_classes_lost |
|
|
Performance_schema_mutex_instances_lost |
|
|
Performance_schema_nested_statement_lost |
|
|
Performance_schema_prepared_statements_lost |
|
|
Performance_schema_program_lost |
|
|
Performance_schema_rwlock_classes_lost |
|
|
Performance_schema_rwlock_instances_lost |
|
|
Performance_schema_session_connect_attrs_lost |
|
|
Performance_schema_socket_classes_lost |
|
|
Performance_schema_socket_instances_lost |
|
|
Performance_schema_stage_classes_lost |
|
|
Performance_schema_statement_classes_lost |
|
|
Performance_schema_table_handles_lost |
|
|
Performance_schema_table_instances_lost |
|
|
Performance_schema_table_lock_stat_lost |
|
|
Performance_schema_thread_classes_lost |
|
|
Performance_schema_thread_instances_lost |
|
|
Performance_schema_users_lost |
|
|
Prepared_stmt_count |
Global |
当前的预处理语句的数量。 (最大数为系统变量: max_prepared_stmt_count) |
Qcache_free_blocks |
Global |
查询缓存内自由内存块的数量。 |
Qcache_free_memory |
Global |
用于查询缓存的自由内存的数量。 |
Qcache_hits |
Global |
查询缓存被访问的次数。 |
Qcache_inserts |
Global |
加入到缓存的查询数量。 |
Qcache_lowmem_prunes |
Global |
由于内存较少从缓存删除的查询数量。 |
Qcache_not_cached |
Global |
非缓存查询数(不可缓存,或由于query_cache_type设定值未缓存)。 |
Qcache_queries_in_cache |
Global |
登记到缓存内的查询的数量。 |
Qcache_total_blocks |
Global |
查询缓存内的总块数。 |
Queries |
Both |
服务器执行的请求个数,包含存储过程中的请求。 |
Questions |
Both |
已经发送给服务器的查询的个数。 |
Select_full_join |
Both |
没有使用索引的联接的数量。如果该值不为0,你应仔细检查表的索引 |
Select_full_range_join |
Both |
在引用的表中使用范围搜索的联接的数量。 |
Select_range |
Both |
在第一个表中使用范围的联接的数量。一般情况不是关键问题,即使该值相当大。 |
Select_range_check |
Both |
在每一行数据后对键值进行检查的不带键值的联接的数量。如果不为0,你应仔细检查表的索引。 |
Select_scan |
Both |
对第一个表进行完全扫描的联接的数量。 |
Slave_heartbeat_period |
Global |
复制的心跳间隔 |
Slave_open_temp_tables |
Global |
从服务器打开的临时表数量 |
Slave_received_heartbeats |
Global |
从服务器心跳数 |
Slave_retried_transactions |
Global |
本次启动以来从服务器复制线程重试次数 |
Slave_running |
Global |
如果该服务器是连接到主服务器的从服务器,则该值为ON。 |
Slow_launch_threads |
Both |
创建时间超过slow_launch_time秒的线程数。 |
Slow_queries |
Both |
查询时间超过long_query_time秒的查询的个数 |
Sort_merge_passes |
Both |
排序算法已经执行的合并的数量。如果这个变量值较大,应考虑增加sort_buffer_size系统变量的值。 |
Sort_range |
Both |
在范围内执行的排序的数量。 |
Sort_rows |
Both |
已经排序的行数。 |
Sort_scan |
Both |
通过扫描表完成的排序的数量。 |
Ssl_accept_renegotiates |
|
|
Ssl_accepts |
|
|
Ssl_callback_cache_hits |
|
|
Ssl_cipher |
|
|
Ssl_cipher_list |
|
|
Ssl_client_connects |
|
|
Ssl_connect_renegotiates |
|
|
Ssl_ctx_verify_depth |
|
|
Ssl_ctx_verify_mode |
|
|
Ssl_default_timeout |
|
|
Ssl_finished_accepts |
|
|
Ssl_finished_connects |
|
|
Ssl_server_not_after |
|
|
Ssl_server_not_before |
|
|
Ssl_session_cache_hits |
|
|
Ssl_session_cache_misses |
|
|
Ssl_session_cache_mode |
|
|
Ssl_session_cache_overflows |
|
|
Ssl_session_cache_size |
|
|
Ssl_session_cache_timeouts |
|
|
Ssl_sessions_reused |
|
|
Ssl_used_session_cache_entries |
|
|
Ssl_verify_depth |
|
|
Ssl_verify_mode |
|
|
Ssl_version |
|
|
Table_locks_immediate |
Global |
立即获得的表的锁的次数。 |
Table_locks_waited |
Global |
不能立即获得的表的锁的次数。如果该值较高,并且有性能问题,你应首先优化查询,然后拆分表或使用复制。 |
Table_open_cache_hits |
|
|
Table_open_cache_misses |
|
|
Table_open_cache_overflows |
|
|
Tc_log_max_pages_used |
|
|
Tc_log_page_size |
|
|
Tc_log_page_waits |
|
|
Threads_cached |
Global |
线程缓存内的线程的数量。 |
Threads_connected |
Global |
当前打开的连接的数量。 |
Threads_created |
Global |
创建用来处理连接的线程数。如果Threads_created较大,你可能要增加thread_cache_size值。缓存访问率的计算方法Threads_created/Connections。 |
Threads_running |
Global |
激活的(非睡眠状态)线程数。 |
Uptime |
Global |
服务器已经运行的时间(以秒为单位)。 |
Uptime_since_flush_status |
Global |
最近一次使用FLUSH STATUS 的时间(以秒为单位)。 |