Am 18.05.2012 03:01, schrieb Carlos E. R.:
On 2012-05-18 02:05, Paolo Pantò wrote:
maybe wrong permissions on /var/log/mysql/ directory.
try to change this to # chmod 750 /var/log/mysql/ and optional # chown mysql /var/log/mysql/
I do that, then I get another error:
Telcontar:~ # logrotate /etc/logrotate.d/mysql error: "/var/log/mysql" has insecure permissions. It must be owned and be writable by root only to avoid security problems. Set the "su" directive in the config file to tell logrotate which user/group should be used for rotation. Telcontar:~ #
add su mysql mysql to your /etc/logrotate.d/mysql file: ... /var/log/mysql/mysqld.log { su mysql mysql # create 600 mysql mysql ... depending on your opensuse and/or mysql version the owner.group setting may vary.
WHAT!?
Telcontar:~ # l /var/log | grep mysql drwxr-x--- 2 mysql root 4096 May 17 22:19 mysql/ lrwxrwxrwx 1 root root 23 Jan 31 2010 mysqld.log -> ../lib/mysql/mysqld.log Telcontar:~ #
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org