log_slow_queries  = "C:\Program Files\MySQL\MySQL Server 5.1\mysql-slow.log" 
long_query_time  = 1 

I wrote the lines above in my.ini file. But after running my query, which is taking more than 1 second to execute, the log file is not generated. What am I doing wrong?

Thanks in advance....

有帮助吗?

解决方案

Please restart mysql service. Pl execute this and check : SHOW VARIABLES LIKE '%slow_query_log%'; this will help you to identify the location of the mysql slow query log file.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top