top of page

How to Restart MySQL Server

  • Writer: Jha Chandan
    Jha Chandan
  • Mar 21, 2021
  • 1 min read

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)
ree

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!
Muse a little, learn a lot.✌️

 

Here you’ll find practical SQL queries, troubleshooting tips with fixes, and step-by-step guidance for common database activities. And of course, don’t forget to pause and muse with us along the way. 🙂
 

I share insights on:​​

  • Db2

  • MySQL

  • SQL Server

  • Linux/UNIX/AIX

  • HTML …and more to come!
     

Whether you’re just starting out or looking to sharpen your DBA skills, there’s something here for you.

Let the posts
come to you.

Thanks for submitting!

  • Instagram
  • Facebook
  • X
2020-2025 © TechWithJC

Subscribe to Our Newsletter

Thanks for submitting!

  • Facebook
  • Instagram
  • X

2020-2025 © TechWithJC

bottom of page