mysqli_connect(): (HY000/2002): Connection timed out on hosting

后端 未结 4 1838
我寻月下人不归
我寻月下人不归 2020-12-21 12:41

I am trying to connect mysql database using php. But it is running fine on local machine but not when hosted online and error appeared as mysqli_connect(): (HY000/2002): Co

4条回答
  •  青春惊慌失措
    2020-12-21 12:54

    In my case, AWS firewall was blocking my web server.

    Adding the web servers IP address to the firewall exceptions fixed this for me.

提交回复
热议问题