Advertisement
Guest User

Untitled

a guest
Oct 13th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log {
  2. daily
  3. rotate 7
  4. missingok
  5. create 640 mysql adm
  6. compress
  7. sharedscripts
  8. postrotate
  9. test -x /usr/bin/mysqladmin || exit 0
  10. if [ -f `my_print_defaults --mysqld | grep -m 1 -oP "pid-file=\K.+$"` ]; then
  11. # If this fails, check debian.conf!
  12. mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \
  13. flush-engine-log flush-general-log flush-slow-log
  14. fi
  15. endscript
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement