In case logrotate complains

/etc/cron.daily/logrotate:
error: mysqld:21 duplicate log entry for /var/lib/mysql/mysqld.log

The simple workaround should be applied:

~# ls -lsa /etc/logrotate.d/mysql*
/etc/logrotate.d/mysql
/etc/logrotate.d/mysqld
~# rm /etc/logrotate.d/mysql

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)