Rotate Logs without rotating all logs

This is a discussion on Rotate Logs without rotating all logs within the MySQL Database forums, part of the Database Forums category; Is it possible to rotate the slow query log without rotating other log files like the binary log file?...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-28-2007
ryanmhuc@yahoo.com
 
Posts: n/a
Default Rotate Logs without rotating all logs

Is it possible to rotate the slow query log without rotating other log
files like the binary log file?

Reply With Quote
  #2 (permalink)  
Old 10-28-2007
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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0