PDA

View Full Version : How to properly kill/restart Mysql if my.cnf changed?


ubbuser
Tue 26th Mar '02, 1:51pm
Hello, if I change a value in my.cnf, how do I properly kill mysql?

I ask this because even if I type:

mysqladmin shutdown

Then I do a ps aux | grep mysql

and I see mysql_safe running!

so what is the best way to make sure mysql is shutdown?

also I restart using the init.d script that has mysql script and I just do a mysql start

Is that fine?

Any help would be appreciated much! Thanks in advance!

Freddie Bingham
Tue 26th Mar '02, 3:16pm
You can restart mysql from phpMyAdmin or you can usually issue (when su'd to root)

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

eva2000
Wed 27th Mar '02, 4:30am
i do the way freddie says, but sometimes mysql will linger for a while before ending so do a

ps aux | grep mysql

to see when mysql ends before touching your database in the case for mysql repairs etc

Dave#
Wed 27th Mar '02, 5:59pm
Originally posted by freddie
You can restart mysql from phpMyAdmin or you can usually issue (when su'd to root)

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

Not be a pedant but that will only work on Linux (not unix), and only if the startup scripts have been installed.


http://www.mysql.com/doc/A/u/Automatic_start.html