]> git.pld-linux.org Git - packages/mysql.git/blob - mysql.logrotate
- rel 3
[packages/mysql.git] / mysql.logrotate
1 # This section is used from mysqld.conf for logrotation.
2 # Be sure that the password in config matches the actual one.
3 #
4 # ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
5 #
6 # [mysqladmin]
7 # user = mysql_sysadmin
8 # password = <secret>
9 #
10 # where "<secret>" is the password.
11 #
12 # You must do this for every active cluster defined in /etc/mysql/clusters.conf
13
14 /var/log/mysql/query.log
15 /var/log/mysql/mysqld.log
16 /var/log/mysql/slow.log
17 /var/log/mysql/update*
18 {
19         su mysql mysql
20         olddir /var/log/archive/mysql
21         notifempty
22         missingok
23         create 640 mysql mysql
24         sharedscripts
25         postrotate
26                 /sbin/service mysql flush-logs
27         endscript
28 }
This page took 0.038027 seconds and 4 git commands to generate.