]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.logrotate
- do not rotate /var/log/mysql/err. see Revision 1.13 commit why
[packages/mysql.git] / mysql.logrotate
1 # If the *mysql* root user has a password you have to set it in mysqld.conf
2 #
3 # [mysqladmin]
4 # user = mysql_logrotate
5 # password = <secret>
6 #
7 # where "<secret>" is the password.
8 #
9 # You must do this for every cluster defined in /etc/mysql/clusters.conf
10 #
11 # ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
12
13 /var/log/mysql/log
14 /var/log/mysql/mysql.err
15 /var/log/mysql/slow
16 /var/log/mysql/update*
17 {
18         olddir /var/log/archive/mysql
19         notifempty
20         missingok
21         create 640 mysql mysql
22         sharedscripts
23         postrotate
24                 /sbin/service mysql flush-logs
25         endscript
26 }
This page took 0.090889 seconds and 4 git commands to generate.