欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

MySQL數(shù)據(jù)庫(kù)維護(hù)中監(jiān)控所用到的常用命令

 更新時(shí)間:2013年08月04日 16:47:21   作者:  
這篇文章主要介紹額MySQL監(jiān)控時(shí)常用的的幾個(gè)MySQL命令,需要的朋友可以收藏下

status = show status like ‘%%' [例:show status like 'Com_select']
variables = show variables like ‘%%' [例:show variables like 'query_cache_size']

1、MySQL查詢次數(shù)(status)
Com_select;Com_update;Com_insert;Com_delete;Com_change_db

2、查詢緩存空間大小:query_cache_size(variables)
查詢緩存最大查詢數(shù)據(jù)集大小:query_cache_limit(variables);
緩存中的查詢個(gè)數(shù):Qcache_inserts(status);
查詢緩存命中率:(Qcache_hits/(Qcache_hits+Qcache_inserts))*100% (status)

3、索引緩存命中率
索引緩存空間大?。簁ey_buffer_size (variables)
索引緩存命中率:(Key_reads/Key_read_requests)*100% (status)

4、并發(fā)連接數(shù)
最大充許連接數(shù):max_connections(variables)
實(shí)際最大連接數(shù):max_used_connections(status)
當(dāng)前連接數(shù):Threads_connected(status)
活躍連接數(shù):Threads_running(status)
緩存連接數(shù):Threads_cache(status)

5、流量統(tǒng)計(jì)(status)
Bytes_received ,Bytes_sent(status)

6、連接次數(shù)
每秒連接次數(shù):Connections(status)
每秒實(shí)際創(chuàng)建連接次數(shù):Threads_created(status)

7、表鎖定統(tǒng)計(jì)
立即釋放的表鎖數(shù):Table_locks_immediate(status)
需要等待的表鎖數(shù):Table_locks_waited(status)

相關(guān)文章

最新評(píng)論