Я установил новый сервер Ubuntu 18.04 с mysql, и я ежедневно получаю по электронной почте следующую ошибку:
Cron <root@www> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/*log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
Как я могу исправить эту ошибку ?
I think I found the problem according to https://serverfault.com/questions/325171/debian-mysql-error-running-shared-postrotate-script-for-var-log-mysql-log:
My password for user debian-sys-maint
was not correct. I updated the password with:
update user set authentication_string=password("<password>") where user="debian-sys-maint";