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]