[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Shutdown mysql...
- Subject: Re: [cobalt-users] Shutdown mysql...
- From: craig <craig@xxxxxxxxxxxxx>
- Date: Tue Nov 12 01:17:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> 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
>
Heres how I did it when I forgot pass
I simply stopped it with
/etc/rc.d/init.d/mysql stop
Howver when I tried to start it as root with skip grant tabels it
complained so I su mysql
then started it that way changed the pass
then
ps awux |grep mysql
kill -9 the pid
then restarted form root /etc/rc.d/init.d/start