Cron error with mysql log

Mattpl

Verified User
Joined
Jun 28, 2017
Messages
84
Location
ZS
Hi I have problem with cron daily job.

/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

For now, what I make:
- recreate user with password from ./debian.cnf
GRANT RELOAD, SHUTDOWN, PROCESS, SHOW DATABASES, SUPER, LOCK TABLES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY PASSWORD 'xxxxxxxxxxxxxxxx'

- create files from error code with chmod 775
 
Back
Top