Forked from v1nc3ntlaw/mysql slow queries analyse tool
Created
August 9, 2010 15:37
-
-
Save wildjcrt/515583 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://hackmysql.com/scripts/mysqlsla | |
chmod +x mysqlsla-2.03 | |
sudo ./mysqlsla-2.03 /var/log/mysql/mysql-slow.log | |
# 預設會列出 top 10 的 slow quires | |
# 可以帶參數 --top 13 修改列出的項目數量 | |
# 通常網路上都說從 top 1, 2, 3 的 slow quires 去修 | |
# 是對增進效能最有幫助的! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment