programmingnation.in@gmail.com

Easy fix to “Can’t connect to MySQL server on ‘ localhost(3306)”

Easy fix to “Can’t connect to MySQL server on ‘ localhost(3306)”

MySQL-server-fix

While we use MySQL on our computers, we come across “Can’t connect to MySQL server on ‘ localhost(3306)” regularly. Whenever this happens, the program is unable to access the MySQL command client and the local server to extract data for our project use. The primary reason for this issue is that the MySQL server might not be running on your computer. In this article, we will show you how to fix this error. 

How to start MySQL server on your computer

  1. Right-click on your taskbar and open Task Manager.
  2. Head on to the Services tab. Scroll down and look for MySQL.
  3. Right-click on it and go “Open Services.”
  4. Again scroll down and look for MySQL.
  5. Right-click on it and go to “Properties.”
  6. In the properties Dialog box, go under the General tab.
  7. Make sure to switch the start-up type to “Automatic.”
  8. Click on Start open below Service Status.
MySQL Properties Dialog Box
MySQL Properties Dialog Box

Your MySQL server is now up and running on your computer, and you won’t need to worry about it as it will automatically get started.

I hope your problem has been resolved, and you can continue working with MySQL without any issues.

 

Leave a Reply

Your email address will not be published.