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?...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|