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

I am installing a MediaWiki software witht he given versions:

MediaWiki	1.22.6 PHP	5.3.3 (apache2handler) MySQL	5.1.73

I am not able to connect to my database, in my LocalSettings.php, I have $wgDBserver = "myServer:MyPort"; because it is MySQL and therefore can't use $wgDBport.

The problem is that I still can't connect.

In my wiki's server, I can execute the mysql -h server -P port and I am able to connect.

Is there any known issue taht prevents connection to custom ports?

I can't log my wiki URL beucase it is not public, sorry.

thanks!