Saturday 14 April 2018

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

I just downloaded the mysql and tried to run the command ‘mysql -h localhost -u root -p’.

Unfortunately, I end up in below error.

C:\>mysql -h localhost -u root -p
Enter password: ****
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

After some analysis, I realized that the MySQL server is not running. You need to start the mysql server to resolve this issue.

Open Windows prompt, and search for services.



You can able to see ‘Services’ gear icon. Click on that.


Check for MySQL and start the service.



Previous                                                 Next                                                 Home

No comments:

Post a Comment