We help IT Professionals succeed at work.
Get Started

My.cnf slow query log issues

Waterstone
Waterstone asked
on
1,426 Views
Last Modified: 2012-05-11
I'm having trouble with the my.cnf file for MySQL.  I cannot seem to get the slow query log to work.

MySQL version 5.1.52, CentOS.  I've tried using the WebMIN inteface to make the changes but it does work.  After making the changes and restarting the changes revert to OFF for some statements.  

So went to the CNF file.  This file path /etc/my.cnf.  It seems to read this file on startup because it enforces the timeout values.  

It creates the error log file specifed in the attached copy of the cnf,
 log-error=/var/log/mysql_errors.log.  But it does not create the slow query log.  Does anyone have the log section form a successful my.cnf?

Thanks.
my-new.txt
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE