Jump to content

[SOLVED] log-slow-queries my.cnf file


miriamn

Recommended Posts

Hello all,

 

I want to print the slow queries to a special log file, so I changed my /etc/my.conf file and add the following lines:

 

log-slow-queries = /logs/log/mysql_slow.log

long_query_time = 5

 

then I restart mysql and with "show variables" command saw that there was a change:

 

log_slow_queries                | ON                        |

| long_query_time                | 5                 

 

 

BUT-

I didn't find the log file I have been created!!!

 

What I have to do more?

 

thanks!!!

 

Miriam

Link to comment
https://forums.phpfreaks.com/topic/125756-solved-log-slow-queries-mycnf-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.