[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
[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