Hi,
thanks for the pproposed fix, but I'd say that running some logrotate
scripts with enhanced privilege (root) might be against debian policy?
Cheers
B
Am 22.05.2013 20:39, schrieb Fabián Bonetti:
Solved:
nano /etc/logrotate.d/mysql-server
/var/log/mysql.log
On Thu, 23 May 2013 15:22:03 +0200
Bjoern Boschman bjo...@boschman.de wrote:
I really do not know. I'm used to always be root because I am developer of
Puppy-es OS. Alli always root.
--
BSS Servicio :. $telnet bayresmail.com.ar 2323
MamaLibre Reader :.
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
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:
Package: mysql-server-core-5.5
Version: 5.5.31+dfsg-0+wheezy1
Followup-For: Bug #622119
/etc/cron.daily/logrotate:
^G/usr/bin/mysqladmin: refresh failed; error: 'Unknown error'
error: error running shared postrotate script for '/var/log/mysql.log
/var/log/mysql/log-slow-queries.log '
run-parts:
Package: mysql-server
Version: 5.1.49-3
Severity: minor
-- System Information:
Debian Release: wheezy/sid
Architecture: i386 (x86_64)
Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions
6 matches
Mail list logo