HI
Probably a silly question, but how can I roll the logs for mysql?
I started it with 
safe_mysqld --log-slow-queries --log &

So it created two logs in my /var/lib/mysql folder, one holding ALL
queries, and one for only the slow queries.
The "general" log is growing quite rapidly, and I would like to gzip the
log at the end of each day so it will be easier to find what you are
looking for, and so I can delete old logs at a glance.

Can someone help me with a script to do this?

Thanks
 





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to