小编coo*_*fan的帖子

启用“log_queries_not_using_indexes”会禁用“long_query_time”?

我注意到,在 Mysql 中,当启用log_queries_not_using_indexes,slow_query_log和 时long_query_time,即使查询时间远小于long_query_time.

似乎一旦log_queries_not_using_indexes启用,无论“long_query_time”是什么,Mysql 都会记录所有不使用索引的查询。

有没有办法克服这个问题?我的意思是,有没有办法记录所有比 花费更长时间的查询long_query_time,而不管它们是否使用索引?

mysql performance mysql-5.5 slow-log

14
推荐指数
1
解决办法
3万
查看次数

标签 统计

mysql ×1

mysql-5.5 ×1

performance ×1

slow-log ×1