Thread:Project:Support desk/Can't connect to my remote MySQL database that uses a custom port/reply

Hi!

According to Manual:$wgDBserver using a port like $wgDBserver = "localhost:3308" is broken in MediaWiki 1.22.

More information are in - according to that bug it has been fixed in MediaWiki 1.22 by the end of March, so that the fix should be included in MediaWiki 1.22.6, which is from end of April. So if you have a current version, then this code

https://gerrit.wikimedia.org/r/#/c/119735/1/includes/db/DatabaseMysqli.php

obviously is not working properly for you. You might want to check, what $realServer and $port are set to in your case.