PDA

View Full Version : How to properly restart mysql


ssslippy
04-16-2008, 05:22 AM
What is the proper way to restart mysql without screwing up current database queries.

SEOvB
04-16-2008, 06:50 AM
service mysql restart

Paul M
04-16-2008, 07:04 AM
I think you mean service mysqld restart

Dismounted
04-16-2008, 07:11 AM
I always forget to put the "d" on at the end when I'm going through commands fast :p. Another method is:
/etc/init.d/mysqld restart

SEOvB
04-16-2008, 08:07 AM
I think you mean service mysqld restart

Sure if the server is setup to recognize mysqld rather then mysql.

On a sidenote, is mysqld the correct way for the server to recongnize it? I've got mine set for service mysql restart and that works, and mysqld is unrecongized service.

:confused:

Marco van Herwaarden
04-16-2008, 08:35 AM
It all depends on how the server is setup and the OS used.

mlx
04-16-2008, 10:21 AM
I believe the stock CentOS RPMs setup the service as "mysqld" and the RPMs from mysql.com will set it up as "mysql", or was it the other way around?

Anyway, both ways should be fine and it really doesn't matter, just a question of which binary you use I guess.

Paul M
04-16-2008, 10:24 AM
Its always been mysqld on servers I have used. :)

wolfstream
04-22-2008, 01:01 PM
service mysql restart

I think you mean service mysqld restart

Either option will work. In some it's mysqld, in some it's mysql