mysql状态查看 QPS/TPS/缓存命中率查看

MysqL,看到QPS,就想知道怎么查看的,看了下面这篇文章,觉得正是我需要的,留下来备用。

nofollow">http://blog.163.com/ji_1006/blog/static/106123412013101421530142/

<div style="line-height:28px;color:rgb(51,102,153);font-family:'Hiragino Sans GB W3','Hiragino Sans GB',Arial,Helvetica,simsun,u5b8bu4f53;font-size:16px;">
运行中的MysqL状态查看


<div style="line-height:28px;color:rgb(51,u5b8bu4f53;font-size:16px;">
 

<div style="line-height:28px;color:rgb(51,u5b8bu4f53;font-size:16px;">
对正在运行的MysqL进行监控,其中一个方式就是查看MysqL运行状态。 

<div style="line-height:28px;color:rgb(51,u5b8bu4f53;font-size:16px;">
<br style="line-height:28px;">

show  global  status like 'Question%'; 
show global status like 'Com_commit'; 
show global status like 'Com_rollback'; 
show  global   status  like   'key%'; 
show status like 'innodb_buffer_pool_read%'; 
show status like 'Qcache%'; 
show global  status like 'open%'; 
show global status like 'Thread%'; 
show global status like 'Connections'; 
show global  status like '%lock%'; 
show slave status 
show status like 'Create_tmp%'; 
disk_tables/Created_tmp_tables比值最好不要超过10%,如果Created_tmp_tables值比较大, 
binlog Cache 使用状况 
show status like 'binlog_cache%'; 
binlog_cache_disk_use值不为0 ,可能需要调大 binlog_cache_size大小 
show status like 'innodb_log_waits'; 
#show global status; 
#show global status like %...%; 

相关文章

优化MySQL数据库发布系统存储的方法有:1.mysql库主从读写分...
使用mysql的方法:在“我的电脑”→右键→“管理”→“服务”...
在mysql中查看root用户权限的方法:1.命令行启动mysql服务;...
MySQL主从复制是用来备份一个与主数据库一样环境的从数据库,...
运行mysql的方法1.启动mysql服务,在“我的电脑”→右键→“...
开启mysql的方法1.可以通过快捷键win+r,输入cmd,打开窗口,...