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

后端 未结 26 1973
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:04

    Go to Run type services.msc. Check whether MySQL services is running or not. If not, start it manually. Once it started, type mysqlshow to test the service.

    0 讨论(0)
  • 2020-12-23 03:04

    Though it is an old question, I am adding my answer in it, because the solution that worked for me on Windows 7 as an admin user, is missing in the answers' list. Though my solution is for installed MySQL, I am putting it for those who search for a solution for this error message. Here it is:

    1. Click on the Windows 7 start button and type taskmgr in the search bar
    2. Right click on the taskmgr program icon and select Run as administrator
    3. In the Task Manager window, go to the Services tab
    4. Right click on the MySQL service and click Start Service

    0 讨论(0)
  • 2020-12-23 03:05

    I have a windows 8.1 machine and mysql was not running at all even after trying to start mysqld with no error logs. This solution worked for me:

    1. start cmd in admin mode
    2. type in "net start mysql"
    3. close current cmd window and open new cmd window
    4. type in "mysql"

    The mysqld service should now be available.

    0 讨论(0)
  • 2020-12-23 03:05

    Check Mysqld.exe file is in your bin folder. if it is not there , just copy that file from any other computer and paste it on your bin folder.Just double click. Then run mysql.its solved

    0 讨论(0)
  • 2020-12-23 03:05

    There is a possibility that your installation of MYSQL got corrupted. The best thing you can do is to search for MYSQL INSTALLER on your system and then run it again.

    It will not download the mysql server again, it will just help you to set it up.

    After that, edit your environment variables path and add the bin folder of your mysql to it.

    By now, it should work.

    0 讨论(0)
  • 2020-12-23 03:06

    You don't need to restart your windows. The easiest way to achieve this is

    1. Goto /bin/
    2. Run mysqld (service)
    3. close the cmd prompt
    4. Run mysql.exe or the better way to do is add the location to PATH environment Variable

    Thanks

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