# Parse a microslow patched slow log
mysqlsla --log-type msl LOG
# Replay a replay file
mysqlsla --replay FILE
# Parse a user-defined log specify its format
mysqlsla --log-type udl --udl-format FILE
# Let mysqlsla automatically determine the log type
mysqlsla LOG
报表:
[root@node01 testing]# mysqlsla SRVR00-slow.log
Auto-detected logs as slow logs
Report for slow logs: SRVR00-slow.log
1.65k queries total, 10 unique
Sorted by 't_sum'
Grand Totals: Time 36.20k s, Lock 0 s, Rows sent 41.59M, Rows Examined 2.70G
______________________________________________________________________ 001 ___
Count
: 1.62k
(98.25%)
Time
: 34947 s total, 21.519089 s avg, 16 s to 42 s max
(96.54%)
95% of Time : 32271 s total, 20.928016 s avg, 16 s to 29 s max
Lock Time (s) : 0 total, 0 avg, 0 to 0 max
(0.00%)
95% of Lock : 0 total, 0 avg, 0 to 0 max
Rows sent
: 4 avg, 4 to 4 max
(0.02%)
Rows examined : 1.64M avg, 1.07M to 2.13M max
(98.32%)
Database
: teachingfile
Users
: