1 # This section is used from mysqld.conf for logrotation.
2 # Be sure that the password in config matches the actual one.
4 # ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
7 # user = mysql_sysadmin
10 # where "<secret>" is the password.
12 # You must do this for every active cluster defined in /etc/mysql/clusters.conf
14 /var/log/mysql/@mysqlversion@/query.log
15 /var/log/mysql/@mysqlversion@/mysqld.log
16 /var/log/mysql/@mysqlversion@/slow.log
17 /var/log/mysql/@mysqlversion@/update*
19 olddir /var/log/archive/mysql/@mysqlversion@
22 create 640 mysql mysql
26 # if you run the rotation less often than "daily" then the
27 # "expire-logs-days" mysqld server parameter may no longer work as you
32 /sbin/service mysql-@mysqlversion@ flush-logs