[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Shutdown mysql...



On Tuesday 12 November 2002 04:03, Santiago Montalván wrote:
> I am trying to kill mysqld so I can reset the root password but I cannot
> takedown the .pid file...  Here is what I have:
>
> [root mysql]# ls
> mysql  mysql.sock  ns1.hostname.com.err  ns1.hostname.com.pid  test
>
> And then I type:
>
> [root /]# kill 'cat /var/lib/mysql/ns1.hostname.com.pid'
> kill: No such pid cat /var/lib/mysql/ns1.hostname.com.pid
>
> I and get the above error, why?  What am I doing wrong?
>
> (I am replacing the actual domain name for hostname for this example).
>
> So then I do a...
>
> [root mysql]# ps -A | grep sql
> 20623 ?        00:00:00 safe_mysqld
> 20654 ?        00:00:00 mysqld
> 20656 ?        00:00:00 mysqld
> 20657 ?        00:00:00 mysqld
>
> And of course mysqld is still running...  PLEASE help I wanna start doing
> some MySQL stuff but I need to know the password.
>

Try /etc/rc.d/init.d/mysql stop

-- 
Gerald Waugh 
http://frontstreetnetworks.com         http://raqware.com
Front Street Networks LLC   Phone: +1 203 785 0699
229 Front Street, Ste. C, New Haven CT 06513-3203