how to understand “can't connect” mysql error messages?

后端 未结 6 847
Happy的楠姐
Happy的楠姐 2021-01-18 19:40

I have the following error message:

SQLSTATE[HY000] [2003] Can\'t connect to MySQL server on \'192.168.50.45\' (4)

How would I

6条回答
  •  [愿得一人]
    2021-01-18 20:25

    @cdhowie While you may be right in other circumstances, with that particular error the (4) is a mysql client library error, caused by a failed handshake. Its actually visible in the source code. The normal reason is too much data causing an internal timeout. Making 'room' for the connection normally sorts it without masking the issue, like upping the timeout or increasing bandwidth.

提交回复
热议问题