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

后端 未结 26 2209
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:51

    In my case, which was a manual install using the .zip file. I solved this by specifying the nonstandard MySQL and Data install locations in a my.ini. https://dev.mysql.com/doc/refman/8.0/en/windows-create-option-file.html

    Then I needed to run the data directory initialisation commands: https://dev.mysql.com/doc/refman/8.0/en/data-directory-initialization-mysqld.html

    Then running: net start mysql

提交回复
热议问题