Rotating Slow and General Query Logs

I had a need to enable general query logging on a slave yesterday.  This makes for a very big file.  So, I needed to rotate this file at least daily.  Enter Google :)  And thanks to Jim Wood and Matt Reid, I have what I need.  Now I have it cron’ed to rotate out every night.  So thanks guys!! And here is a link to the post Matt wrote about it:

http://themattreid.com/wordpress/?p=34

2 comments ↓

#1 Matt Reid on 05.14.08 at 2:29 pm

Glad that worked out well for you. :)

#2 MySQL Log Rotation « MySQL-HA on 05.14.08 at 5:08 pm

[...] Log Rotation Posted in tools by mtaylor on the May 14, 2008 Ok. So I just looked at two blog posts about MySQL log rotation. While not technically incorrect, I’d like to disagree [...]

Leave a Comment