性能优化-MySQL慢查日志的存储格式

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的执行内容

发布了1075 篇原创文章 · 获赞 888 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/weixin_42528266/article/details/103992589