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

后端 未结 6 754
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:11

    I was just struggling with the same issue.

    Disable the DNS hostname lookups solved the issue for me.

    [mysqld] ... ... skip-name-resolve

    Don't forget to restart MySQL to take effect.

提交回复
热议问题