关掉这个功能只需要在他前面加上#号 #log-bin 开启慢查询日志( slow query log ) 慢查询日志对于跟踪有问题的查询非常有用。它记录所有查过long_query_time的查询,如果需要,还可以记录不使用索引的记录。
基于8个网页-相关网页
Reading through the slow query log is best done with the mysqldumpslow command.
阅读慢速查询日志最好是通过 mysqldumpslow 命令进行。
You can configure mysqld to log slow queries in the aptly named slow query log.
您可以配置mysqld将这些慢速查询记录到适当命名的慢速查询日志中。
Listing 1 shows the configuration required in my.cnf to enable the slow query log.
清单1给出了要启用慢速查询日志需要在my . cnf中所做的配置。
应用推荐