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

后端 未结 26 2214
Happy的楠姐
Happy的楠姐 2020-12-23 02:37

I installed MySQL on Microsoft Windows 8 Using a noinstall Zip Archive. But when i tested by executing the following commands on windows prompt, the above error showed up.<

26条回答
  •  -上瘾入骨i
    2020-12-23 02:46

    Despite that my server was running, I had the same problem. I found out that it was the port. So you need to specify the port:

    mysql -u user -p --port 0000
    

    The port on your machine may be different. To find out on which port mysql is running open the mysql ini file and look for port=. A port often used is 3306.

    Example how to log on to mysql

    mysql -u root -p --port 3306 
    

提交回复
热议问题