문제

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