设置:

mysql.ini 的 [mysqld] 


long_query_time = 1
log-slow-queries = slowlog.txt
log-queries-not-using-indexes

 

long_query_time 查询时间 ,单位为秒

log-slow-queries 文件输入目录,目录是相对目录,在 \MySQL\MySQL Server 5.0\data 下

 

 

 

 

相关文章:

  • 2021-08-04
  • 2021-08-31
  • 2021-07-07
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2021-05-04
  • 2022-01-24
  • 2021-04-25
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
相关资源
相似解决方案