SOLVED Fail to parse address error after EA4 migration

billmcollam

Member
Jan 12, 2015
22
2
53
Ontario Canada
cPanel Access Level
Reseller Owner
I've been keenly awaiting to migrate in order to utilize mpm-worker and fpm. However, ran into problems (this is the latest).

After upgrading (to a profile I had tested on another server) with mpm-worker/fpm/php7.1. I get errors with accessing my mysql database.

Failed to parse address "127.0.0.1:3306:3306" in /home/user/conndb/conndb.php on line 2

This is from a 1 line script to connect the database.
<?php
$con = mysqli_connect('127.0.0.1:3306','db_user','password','database');
?>
This worked fine in ea3 - and the same code was tested in the test server. It makes me think that the php handler is at fault. Suggestions or ideas?
 

billmcollam

Member
Jan 12, 2015
22
2
53
Ontario Canada
cPanel Access Level
Reseller Owner
Closed... notice the :3306:3306 in the error message. Apparently in moving from php5.5 to php7.1 the mysql extension was changed to automatically add the port - making the explicit port reference redundant.