mysql慢查询日志分析工具使用
1.mysql-log-filter工具脚本使用说明:google code上找到的一个分析工具.提供了 python 和 php 两种可执行的脚本。http://code.google.com/p/mysql-log-filter/ (需要搬***爬墙),51cto下载链接:http://down.51cto.com/data/2123725
使用方法:(这里只介绍python的使用方法)
python mysql_filter_slow_log.py./mysql1-slow.log --no-duplicates --sort-execution-count --top=10>> mysql_slow_test.txt
备注:mysql1-slow.log慢查询日志名称
--no-duplicates
--sort-execution-count
--top=10取前十位
mysql_slow_test.txt输出分析报告
写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好写得好
页:
[1]