How to Restart MySQL Server
In this article we will learn how to restart MySQL Server on Linux and Windows.
Restart MySQL Server on Linux
To restart the MySQL server on Linux we can use below commands:
service mysql restart
Code language: SQL (Structured Query Language) (sql)
If the name is MySQL service is mysqld not mysql, we 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 we can use the init.d to start the MySQL service:
/etc/init.d/mysqld restart
Code language: SQL (Structured Query Language) (sql)
Restart MySQL Server on Windows
If MySQL installed as a Window service, we will follow these steps to restart the MySQL Server:
1. open the Run window by using the Windows+R keyboard.
2. type services.msc and press Enter:
3. select the MySQL service and click the restart button.
That's all in this post. If you liked this blog and interested in knowing more about MySQL, Please Like, Follow, Share & Subscribe to imjhachandan.com
Comments