Restart MySQL Server

Created with Sketch.

Restart MySQL Server

Summary: in this tutorial, you will learn how to restart MySQL Server on Windows and Linux.

Restart MySQL Server on Windows

If MySQL installed as a Window service, you follow these steps to restart the MySQL Server:

First, open the Run window by using the Windows+R keyboard.

Second, type services.msc and press Enter:

Third, select the MySQL service and click the restart button.

Restart MySQL Server on Linux

You use the following command to restart the MySQL server On Linux:

service mysql restart

Code language: SQL (Structured Query Language) (sql)

If the name is MySQL service is mysqld not mysql, you need to change the service name in the command as shown in the following command:

service mysqld restart

Code language: SQL (Structured Query Language) (sql)

Or you can use the init.d to start the MySQL service:

/etc/init.d/mysqld restart

Code language: SQL (Structured Query Language) (sql)

In this tutorial, you have learned how to restart the MySQL server on Windows and Linux.

Leave a Reply

Your email address will not be published. Required fields are marked *