3、MySQL慢查日志的存储格式
如下图所示:
说明:
1、# Time: 180526 1:06:54 -------查询的执行时间
2、# User@Host: root[root] @ localhost [] Id: 4 -------执行sql的主机信息
3、# Query_time: 0.000401 Lock_time: 0.000105 Rows_sent: 2 Rows_examined: 2-------SQL的执行信息:
Query_time:SQL的查询时间
Lock_time:锁定时间
Rows_sent:所发送的行数
Rows_examined:锁扫描的行数
4、SET timestamp=1527268014; -------SQL执行时间
5、select * from staff; -------SQL的执行内容