Re: logrotate problem with mysql

2003-01-13 Thread Jiann-Ming Su
On Fri, 10 Jan 2003, Michael T. Babcock wrote: > >if test -n "`ps acx|grep mysqld`"; then > >/usr/bin/mysqladmin flush-logs > >fi > > > > > > You're probably running it as root with the password loading from the > /root/.my.cnf or something. Try adding the -uro

Re: logrotate problem with mysql

2003-01-10 Thread Michael T. Babcock
Jiann-Ming Su wrote: if test -n "`ps acx|grep mysqld`"; then /usr/bin/mysqladmin flush-logs fi You're probably running it as root with the password loading from the /root/.my.cnf or something. Try adding the -uroot -p command-line options, or a [mysqladmin]

logrotate problem with mysql

2003-01-10 Thread Jiann-Ming Su
I'm using mysql that was distributed by mysql.com. I seem to be having a problem with logrotate. When I run logrotate manually on mysql only, the logs seem to rotate fine. But, when it runs in the cron job, it creates the new log, but mysql continues to log to the old log. My mysql logrotate

Re: logrotate problem

2002-03-21 Thread sascha mantscheff
in the postrotate section, you have to add the user and password parameters to mysqladmin: mysqladmin -u someuser --password=somepassword flush-logs s.m. Am Donnerstag, 21. März 2002 19:23 schrieben Sie: > Hello there! > > > I have added recently administrative user to mysql database:

logrotate problem

2002-03-21 Thread Slawomir Orlowski
Hello there! I have added recently administrative user to mysql database: #mysqladmin -u root password someposword since then I'm getting every day such e-mail from logrotate demon: Subject: errors rotating logs Message: errors occured while rotating /var/lib/mysql/mysql.log mysqladmin: connec