Re: MySQL shutting down...


Subject: Re: MySQL shutting down...
From: Carsten Milling (cmilling@gmx.de)
Date: Wed Sep 05 2001 - 07:07:38 MDT


The init script of mysql-3.23.32 shipping with ydl 2.0 uses the mysqladmin
tool to stop the server. This doesn't work if you password protect the
root account of mysql (as is always a good idea).

In /etc/rc.d/init.d/mysqld just change the line
  /usr/bin/mysqladmin shutdown > /dev/null 2>&1
into
  /bin/kill `cat /var/run/mysqld/mysqld.pid 2>/dev/null` > /dev/null 2>&1

Carsten

On Tue, 4 Sep 2001, Kit Plummer wrote:

> either "service mysqld restart" or "/etc/rc.d/init.d/mysqld stop". both
> ways it fails. I am going to try the latest rev and see if I still have
> the same prob...
>
> At 01:24 PM 9/4/2001 -0500, you wrote:
> >on 9/4/01 1:20 PM, Kit Plummer at kp@yak.vme.com wrote:
> >
> > > Umm - I am not killing anything. The problem is somewhere in the
> > > /etc/rc.d/init.d/mysqld script. Running: _service mysqld restart_ will
> > > display a shutdown failure...
> >
> >Not for me it doesn't - I'm using "/etc/rc.d/init.d/mysqld stop"
> >
> >What are you using?
> >
> >
> > Robert Brandtjen
> > --------------------------------------
> > Web Site Creation and Hosting Services
> > Hostmaster@prometheusmedia.com
> > www.prometheusmedia.com
>



This archive was generated by hypermail 2a24 : Wed Sep 05 2001 - 06:18:24 MDT