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

后端 未结 26 2257
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:48

    1. First make sure you have installed MYsql+Sqlyog(if you are using it.).

      • Start Registry Editor (Regedt32.exe).
    • Locate the following key in the registry:

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters On the Edit menu, click Add Value, and then add the following registry value:

         Value Name: MaxUserPort
         Data Type: REG_DWORD
         Value: 65534
      

      This sets the number of ephemeral ports available to any user. The valid range is between 5000 and 65534 (decimal). The default value is 0x1388 (5000 decimal).

      On the Edit menu, click Add Value, and then add the following registry value:

         Value Name: TcpTimedWaitDelay
         Data Type: REG_DWORD
         Value: 30
      

      This sets the number of seconds to hold a TCP port connection in TIME_WAIT state before closing. The valid range is between 30 and 300 decimal, although you may wish to check with Microsoft for the latest permitted values. The default value is 0x78 (120 decimal).

      Quit Registry Editor.
      
      Reboot the machine.
      

提交回复
热议问题