Remote MySQL Connection in PHP

Hello!

I have a site setup on InfinityFree using InfinityFree’s local MySQL database to store the CMS website.

Inside my website there is PHP scripts to connect to the following:

  • The local InfinityFree MySQL Database (connection works fine)
  • A Remote MySQL Database to pull information

I’ve confirmed that the remote MySQL server has remote connectivity enabled and I can connect to it remotely through another system on the internet.

When I try to connect to it through the PHP scripts on InfinityFree the connection always times out.

Does InfinityFree Free edition allow connecting to a remote MySQL Server through PHP scripts? Or is it blocked and I need premium?

Thanks in advance!

The remote MySQL database must work on the default port 3306. Any other port will fail.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.