1. 程式人生 > >mysql show status查看信息命令

mysql show status查看信息命令

mysql show status


mysql性能命令:


列出所有用戶的當前連接:

> show processlist; (只顯示前100行)


> show full processlist; (顯示所有連接)



查看所有mysql信息:

> show status;



查看正在使用延遲插入處理器線程的數量:

> show status like ‘%Delayed_insert_threads%‘;


同時使用的連接的最大數量:

> show status like ‘%max_used_connections%‘;



打開表的數量:

> show status like ‘%open_tables%‘;


在隊列中等待寫入行的數量:

> show status like ‘%not_flushed_delayed_rows%‘;


已經打開表的數量:

> show status like ‘%opened_tables%‘;


發往服務器查詢的數量:

> show status like ‘%questions%‘


超過long_query_time時間的查詢數量:

> show status like ‘%slow_queries%‘;


當前打開的連接數量:

> show status like ‘%threads_connected%‘;


不在睡眠的線程數量:

> show status like ‘%threads_running%‘;


服務器工作了多少秒:

> show status like ‘%uptime%‘;


查看表級鎖爭用情況(數值越大說明表級鎖爭用越嚴重):

> show status like ‘%table_locks_waited%‘;



當前正在等待鎖定的數量:

> show status like ‘%innodb_row_lock_current_waits%‘;





本文出自 “linux” 博客,請務必保留此出處http://yangzhiming.blog.51cto.com/4849999/1931812

mysql show status查看信息命令