Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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: dev.mysql.com/doc/refman/5.1/en/server-system-variables.html –  Warner Apr 12 '10 at 16:26
add comment

Your Answer

 
discard

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.