MySQL performance tuning primer script 中文说明

2014-11-24 17:39:08 · 作者: · 浏览: 0

mysqlupdateperformance


MySQL performance tuning primer script一个简单好用的mysql优化工具,其实一个shell脚本


下载:


$ wget http://www.day32.com/MySQL/tuning-primer.sh


运行


$ sh tuning-primer.sh all


运行以后会询问mysql用户名好密码最好提供mysql的,还会询问是否在当家目录自动生成.my.cnf配置文件这里保存你的mysql用户名和密码一般选择N。


它主要通过查询mysql中的variables设定和status 并结合当前系统情况给出mysql运行的状态和建议,主要包括以下内容的检查


slow query慢速查询


binlog 二进制日志


max connections 最大连接数


threads 线程数


key buffer size 关键字缓冲


query cache 查询缓存


sort operations 排序


join operations 多表联接


tmp tables 临时表


open files 打开文件数


table cache 表缓存


table locking 锁表


table scans 表扫描


innodb status


total memory used 内存使用



本文来自:http://srsman.com/2009/03/mysql-performance-tuning-primer-script/