View Single Post

   
  #2 (permalink)  
Old 02-28-2008, 11:29 AM
beberlei
 
Posts: n/a
Default Re: Rotate Logs without rotating all logs

On 28 Okt., 05:30, "ryanm...@yahoo.com" <ryanm...@yahoo.com> wrote:
> Is it possible to rotate the slow query log without rotating other log
> files like the binary log file?


why not write a simple bash script, that "rotates" every slow-
query.log if its larger than for example 32M and is executed by
cronjob every hour. you could even write it in PHP, PERL, RUBY or
whatever language you like the most.

Reply With Quote