Hi, I tried to flush the logs but still the rotation doesn't happen. What else could be the problem ?? I get the same message again My config file read like this "/var/log/mysqld.log" { rotate 5 size=100k create 0644 mysql mysql postrotate if test -n "`ps acx | grep mysql`";then /usr/bin/mysqladmin flush-logs fi endscript mail [EMAIL PROTECTED] missingok }
I execute the config file as follows. /usr/sbin/logrotate -v /root/mysqlrotparams.conf I still get the old message > reading config file mysqlrotparams.conf > reading config info for "/var/log/mysqld.log" > Handling 1 logs > rotating pattern: "/var/log/mysqld.log" 102400 bytes (5 rotations) > empty log files are rotated old logs mailed to [EMAIL PROTECTED] > rotating file /var/log/mysqld.log > log does not need rotating --------------------------------------------------------------------- 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