Quantcast
Channel: Planet Apache
Viewing all articles
Browse latest Browse all 9364

Danny Angus: Note to self, how to get the top tens from MySQL slow query log

$
0
0
Use these two commands to get the top ten and top ten repeaters from MySQL's slow query log.

mysqldumpslow -t 10 ./slow-log > /home/danny/top_ten_slow_query.txt

mysqldumpslow -a -s c -t 10 ./slow-log > /home/danny/top_ten_repeat_slow_query.txt

Viewing all articles
Browse latest Browse all 9364

Trending Articles