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

后端 未结 26 2267
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 02:47

    The solution that worked for me is:

    1. Downloaded mysql-8.0.22-winx64.zip file
    2. Extracted the zip file
    3. Moved the extracted folder to C:/Program Files
    4. Opened cmd.exe as admin
    5. Navigated to the directory cd C:\Program Files\mysql-8.0.22\mysql-8.0.22-winx64\bin
    6. mysqld -install (Service successfully installed)
    7. mysqld --initialize (no prompt)
    8. Opened services.msc
    9. Found MySQL
    10. Right-click and start

    Let me know if it helps!

提交回复
热议问题