Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/cron.daily/logrotate:
- mysqladmin: connect to server at 'localhost' failed
- error: 'Access denied for user 'root'@'localhost' (using password: NO)'
- error: error running shared postrotate script for '/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log '
- run-parts: /etc/cron.daily/logrotate exited with return code 1
- [mysqladmin]
- password = *mypassword*
- user = root
- [mysql]
- password = *mypassword*
- test -x /usr/bin/mysqladmin || exit 0
- if [ -f `my_print_defaults --mysqld | grep -oP "pid-file=K[^$]+"` ]; then
- # If this fails, check debian.conf!
- mysqladmin --defaults-file=/etc/mysql/debian.cnf flush-logs
- fi
- # logrotate -f /etc/logrotate.d/mysql-server
- error: skipping "/var/log/mysql.log" because parent directory has insecure
- permissions (It's world writable or writable by group which is not "root")
- Set "su" directive in config file to tell logrotate which user/group should
- be used for rotation.
- su root syslog
- /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log {
Add Comment
Please, Sign In to add comment