/var/log/mysqld*.log {
    create 0640 mysql mysql
    notifempty
    daily
    compress
    postrotate
       HOME="`getent passwd ${USER} | cut -d : -f 6`"
       mysqladmin flush-logs
    endscript
}
