MySQL/PHP Error:[2002] Only one usage of each socket address (protocol/network address/port) is normally permitted

前端 未结 6 1970
陌清茗
陌清茗 2020-11-27 08:11

I couldn\'t find a solution to this already on stackoverflow, most other related topics had to do with Apache not starting first and getting this error. My issue is that aft

6条回答
  •  一整个雨季
    2020-11-27 08:44

    you can modify windows REGISTRY to fix that,

    first in regedit open this path:

    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

    and create 4 new DWORD as this key and values:

    TcpTimedWaitDelay
    REG_DWORD: 0000001e (hex)
    
    MaxUserPort
    REG_DWORD: 0000fffe (hex)
    
    TcpNumConnections
    REG_DWORD: 00fffffe (hex)
    
    TcpMaxDataRetransmissions
    REG_DWORD: 00000005 (hex)
    

    like with this screen shot:

    reference

提交回复
热议问题