MySQL Forums
Forum List  »  InnoDB

Re: poor performance on good hardware
Posted by: Adam Erickson
Date: December 11, 2009 10:43AM

> I want to make slow log rotate with newsyslog.
> Then it rotate log, it's sent SIGHUP to mysqld. Is
> it safely to rotate log this way? It's will be
> rotate once a 24 hours. If not, can you tell me
> any other and more safely method?

There is a bug in 5.1.3X that causes a crash in some situations when mysqld receives sighup. I wouldn't recommend doing that even though your version may have been fixed. 'FLUSH LOGS' is safe, however.

It is also safe to rename the slow log file (or any log file) prior to flush. Flush does not "notice the file is gone" but just reopens it, creating it if it does not exist.

Options: ReplyQuote


Subject
Views
Written By
Posted
3653
December 02, 2009 08:36AM
1699
December 08, 2009 08:30PM
2118
December 09, 2009 08:28PM
1888
December 10, 2009 10:39PM
Re: poor performance on good hardware
1846
December 11, 2009 10:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.