Solved:
nano /etc/logrotate.d/mysql-server
/var/log/mysql.log /var/log/mysql/log-slow-queries.log {
su #new line work
daily
rotate 7
test 1:
sudo /etc/cron.daily/logrotate
test 2:
#mysql_upgrade --force -u root -p
link:
http://archives.gentoo.org/gentoo-us
Hi,
the problem comes from mysqladmin flush-logs
that logs have the wrong owner
this is somehow done wrong by the safe_mysqld script
this script reads my.cnf, identifies error_log and creates it as user root
solution:
chown them as user mysql
Cheers
B
Am 21.05.2013 18:01, schrieb Fabián Bonett
2 matches
Mail list logo