]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysql.logrotate
- skip-innodb sample
[packages/mysql.git] / mysql.logrotate
index c52e7701198c479501a22578c4ae59ebdcf49c9b..382aa5cdf0818b44358283e9edadde66c6713b0f 100644 (file)
@@ -1,8 +1,21 @@
-/var/log/mysqld.log {
-       prerotate
-               mysqladmin flush-logs
-       endscript
+# If the *mysql* root user has a password you have to set it in mysqld.conf
+#
+# [mysqladmin]
+# user = mysql_logrotate
+# password = <secret>
+#
+# where "<secret>" is the password.
+#
+# You must do this for every cluster defined in /etc/mysql/clusters.conf
+#
+# ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
+
+/var/log/mysql/log /var/log/mysql/isamlog.log /var/log/mysql/update* {
+       olddir /var/log/archiv/mysql
+       notifempty
+       create 640 mysql mysql
+       sharedscripts
        postrotate
-               mysqladmin flush-logs
+               /etc/rc.d/init.d/mysql flush-logs
        endscript
 }
This page took 0.034219 seconds and 4 git commands to generate.