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

后端 未结 26 1970
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条回答
  • 2020-12-23 03:07

    I was stuck on this same issue for what felt like an eternity.

    My problem was: I was running mysql from MAMP on port 8889, but when trying to connect to mysql from my command line, it was expecting port 3306. I was running out of ideas, so I tried:

    mysql --port 8889

    and happiness ensued:

    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 2
    Server version: 5.6.34-log MySQL Community Server (GPL)
    
    0 讨论(0)
  • 2020-12-23 03:09

    This happened to me too! But I accidentally found out that execute the 'mysqld' command can solve your problem.

    My SQL version is 5.7. Hope this works for you.

    0 讨论(0)
提交回复
热议问题