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

后端 未结 6 738
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:29

    Using the perror tool that comes with MySQL:

    shell> perror 4
    OS error code   4:  Interrupted system call
    

    It might a bug where incorrect error is reported, in this case, it might a simple connection timeout (errno 111)

提交回复
热议问题