Guest User

Untitled

a guest
Oct 19th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. /etc/cron.daily/logrotate:
  2. mysqladmin: connect to server at 'localhost' failed
  3. error: 'Access denied for user 'root'@'localhost' (using password: NO)'
  4. 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 '
  5. run-parts: /etc/cron.daily/logrotate exited with return code 1
  6.  
  7. [mysqladmin]
  8. password = *mypassword*
  9. user = root
  10.  
  11. [mysql]
  12. password = *mypassword*
  13.  
  14. test -x /usr/bin/mysqladmin || exit 0
  15. if [ -f `my_print_defaults --mysqld | grep -oP "pid-file=K[^$]+"` ]; then
  16. # If this fails, check debian.conf!
  17. mysqladmin --defaults-file=/etc/mysql/debian.cnf flush-logs
  18. fi
  19.  
  20. # logrotate -f /etc/logrotate.d/mysql-server
  21. error: skipping "/var/log/mysql.log" because parent directory has insecure
  22. permissions (It's world writable or writable by group which is not "root")
  23. Set "su" directive in config file to tell logrotate which user/group should
  24. be used for rotation.
  25.  
  26. su root syslog
  27.  
  28. /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