mysql5.6 开启慢连接日志

[mysqld]

#----------
#其他配置参数
#-------

#开启慢查询日志记录
slow_query_log=1

#查询时间超过3秒的sql语句会被记录
long_query_time=3

#记录没有使用索引的查询
log_queries_not_using_indexes=1

#记录慢查询日志的文件地址
slow-query-log-file=d:\mysql\localhost-slow.log

猜你喜欢

转载自my.oschina.net/u/2563364/blog/1819597