MySQL监控所用到的常用命令
来源:互联网 发布:哪里有卖淘宝账号的 编辑:程序博客网 时间:2024/06/08 16:30
转自:http://www.easywu.com/?p=350
上一年在做MySQL监控时整理出的几个MySQL命令。
status = show status like ‘%%’ [例:show status like 'Com_select']
variables = show variables like ‘%%’ [例:show variables like 'query_cache_size']
1、MySQL查询次数(status)
Com_select;Com_update;Com_insert;Com_delete;Com_change_db
2、查询缓存空间大小:query_cache_size(variables)
查询缓存最大查询数据集大小:query_cache_limit(variables);
缓存中的查询个数:Qcache_inserts(status);
查询缓存命中率:(Qcache_hits/(Qcache_hits+Qcache_inserts))*100% (status)
3、索引缓存命中率
索引缓存空间大小:key_buffer_size (variables)
索引缓存命中率:(Key_reads/Key_read_requests)*100% (status)
4、并发连接数
最大充许连接数:max_connections(variables)
实际最大连接数:max_used_connections(status)
当前连接数:Threads_connected(status)
活跃连接数:Threads_running(status)
缓存连接数:Threads_cache(status)
5、流量统计(status)
Bytes_received ,Bytes_sent(status)
6、连接次数
每秒连接次数:Connections(status)
每秒实际创建连接次数:Threads_created(status)
7、表锁定统计
立即释放的表锁数:Table_locks_immediate(status)
需要等待的表锁数:Table_locks_waited(status)
- MySQL监控所用到的常用命令
- centos下,监控网络包所用到的工具
- 工作所用的git常用命令
- vim常用命令(目前我所用到的欢迎大家填补)
- abap 所用到的tcode
- web所用到的技术
- 交叉编译mysql数据库c语言编程中所用到的库(libmysql)
- 我所用到的有用的网址!!!
- 我所用到的WEB2.O网站......
- 项目中所用到的一些xx
- 导出EXCEL所用到的类
- 分清加密时所用到的概念
- 每天checklist所用到的T-CODE...
- pb11.5所用到的dll
- cuda By exmaple所用到的代码
- ABAP开发所用到的函数
- 计算机图形学所用到的数学
- cuda By exmaple所用到的代码
- maven插件使用
- 从HTML5看移动浏览器的腾飞
- Extjs-表格 Ext.grid.GridPanel
- 最近做的一个文本传入数据库程序
- 数据库工具类MyUtils
- MySQL监控所用到的常用命令
- nginx事件驱动总结
- C# Socket网络编程精华篇
- 第三次上机作业
- 如何通过中国知网获取期刊封面及目录页
- c#委托理解简单
- 让Linux更安全的超简配置法
- MYSQL常用命令--导入与导出
- glib, libc, other C library