Restart MySQL Server on Linux

You use the following command to restart the MySQL server On Linux:
service mysql restart
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
Or you can use the init.d to start the MySQL service:
 /etc/init.d/mysqld restart
 


Restart MySQL Server on Windows

If MySQL installed as a Window service, follow below steps to restart the MySQL Server:
  • open the Run window by using the Windows+R keyboard.

  • type services.msc and press Enter:

  • select the MySQL service and click the restart button.