miriamn Posted September 25, 2008 Share Posted September 25, 2008 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 Quote Link to comment Share on other sites More sharing options...
mysqldba Posted September 26, 2008 Share Posted September 26, 2008 Does the user that the MySQL server runs as have write permission to that directory? Quote Link to comment Share on other sites More sharing options...
miriamn Posted September 28, 2008 Author Share Posted September 28, 2008 Hi, Yow are right!!! Now the file was created.. thank you! Miriam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.