forked from pool/mariadb
Kristyna Streitova
a40180b467
- add slow_query_log example to my.cnf and adjust the logrotate configuration to rotate all /var/log/mysql/*.log files . This is useful when the slow query log is enabled. In that case, this log file should also be rotated (bsc#1112767) OBS-URL: https://build.opensuse.org/request/show/676156 OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=225
18 lines
503 B
Diff
18 lines
503 B
Diff
PATCH-P0-SUSE: Fix for logrorate config
|
|
|
|
This patch fixes the logrotarte config file for mariadb.
|
|
Read more at https://www.novell.com/support/kb/doc.php?id=7005219
|
|
|
|
Index: support-files/mysql-log-rotate.sh
|
|
===================================================================
|
|
--- support-files/mysql-log-rotate.sh.orig
|
|
+++ support-files/mysql-log-rotate.sh
|
|
@@ -20,6 +20,7 @@
|
|
|
|
/var/log/mysql/*.log {
|
|
# create 600 mysql mysql
|
|
+ su mysql mysql
|
|
notifempty
|
|
daily
|
|
rotate 3
|