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

后端 未结 4 1835
我寻月下人不归
我寻月下人不归 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 13:01

    Your MySQL server is probably not configured to accept requests from the host you're trying to access it from.

    Check the configuration for the server. Since you say the local machine can access it check where you permitted this and do the same for the ip of the online host.

提交回复
热议问题