Re: Connecting to remote MySQL database via PHP
Thank you for your fast reply, Peter!
I have tried to connect to the database from a Ubuntu VM (mysql -h IPADDRESS -u USERNAME -p) and it works! But only there and not with the php file!
The website is loading (the database is never connected) and after about 10 seconds, the error appears.
I have implemented your corrections, but its the same error:
Warning: mysqli_connect(): (HY000/2002): Connection timed out in /home/.sites/201/site2655003/web/temperature/3/inc/db.inc.php on line 7
Connection timed out
--David
Subject
Written By
Posted
Re: Connecting to remote MySQL database via PHP
June 10, 2014 12:19PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.