Look into the Linux "logrotate" daemon. It allows you to configure what
happens with logs.
At 06:44 AM 6/6/01 -0400, Peter Billson wrote:
>I'm running mySQL on Linux and was wondering is there a way to limit the
>maximum log file size?
>
> From time to time I have written a bad script that will query mySQL in
>a loop (BTW - mySQL can do *lots* of queries/second!) without me
>realizing my mistake until I run out of room on my log partition which
>causes all kinds of Bad things to happen.
> I don't want to reduce the log detail, because normally my logs are
>just fine, just would like to be able to suspend logging when there is
>only x% of disk space left.
>
>Pete
>--
>http://www.elbnet.com
>ELB Internet Services, Inc.
>Web Design, Computer Consulting, Internet Hosting
>
>---------------------------------------------------------------------
>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
---------------------------------------------------------------------
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