top of page

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


jc_logo.png

Hi, thanks for stopping by!

Welcome! to my “Muse & Learn” blog.

This website will help you to learn useful queries/SQL, Tips to troubleshoot problem and their remediation, perform DB related activities etc... and don't forget to muse with us :)....

It cover few useful information on below topics :

 

MySQL, SQL Server, DB2, Linux/UNIX/AIX, HTML ....

Let the posts
come to you.

Thanks for submitting!

  • Instagram
  • Facebook
  • Twitter
© 2023 By ImJhaChandan
bottom of page