开发者

Using mysql slow queries log with PHP

I enabled logging slow queries and set the minimum time to 0. I know that the logging is enable开发者_运维技巧d because the startup of mysqld is being logged. But, when I access my website's php pages using my browser and cause queries to run, no queries are being logged.

Is there something special I need to do to make this work with php?

Thanks in advance.


I'd imagine setting it to 0 disables it. You should be using the binary log if you want to catch every single query going through MySQL.


What version of MySQL is this? 0 only became a valid value for long_query_time in 5.1.21.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜