How Do I Restart MySQL Server?

Each distribution comes with a shell script (read as service) to restart / stop / start MySQL server. First login as root user and open shell prompt (command prompt).

First login as root user. Now type the following command as per your Linux distro:

A) If you are using mysql on RedHat Linux (Fedora Core/Cent OS) then use following command:

* To start mysql server:

* To stop mysql server:

* To restart mysql server

Tip: Redhat Linux also supports service command, which can be use to start, restart, stop any service:

(B) If you are using mysql on Debian / Ubuntu Linux then use following command:

* To start mysql server:

* To stop mysql server:

* To restart mysql server

More MySQL articles are here and here.