I was following the instructions in this post:
https://blog.openshift.com/sharing-database-across-applications/
And I have two apps running successfully, with data in my production
app, with my reports
app up trying to query the production
database. From my production
app, I am able to grab the HOST, PORT, USERNAME, AND PASSWORD.
On my reports
app, I have a simple test script to test connectivity:
$db = mysql_connect('127.7.171.129:3306', 'USER','PW');
if (!$db) {
echo "Could not connect to database: " . mysql_error();
} else {
echo "Connected to database.<br>";
}
The error I am getting is:
Could not connect to database: Lost connection to MySQL server at 'reading initial communication packet', system error: 113
Any help would be appreciated.