Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I deleted the slow.log of MySQL,but seems it's still cached in the system.

But I don't want to restart MySQL.

share|improve this question
up vote 0 down vote accepted

Have you tried flush logs;? Flush logs "closes and reopens all log files."

share|improve this answer
Is this command the same as apachectl graceful of Apache? – apache Apr 12 '10 at 16:16
It doesn't restart MySQL. It closes and reopens the log files. – Warner Apr 12 '10 at 16:22
What if I made some change in my.cnf,how to make it work without restarting MySQL? – apache Apr 12 '10 at 16:24
Some changes can be made dynamically with set variable, others can't be changed without a restart. See: – Warner Apr 12 '10 at 16:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.