Manual:$wgDBserver

Details
Database host name or IP address. Found in LocalSettings>Special:MyLanguage/LocalSettings.php|LocalSettings.php.

If you are using MySQL on a non-standard port, you can use the "hostname:port" syntax, for example  . Note that you cannot use   together with a port (like  ). Reason is that the host name localhost uses the socket, ignoring the specified port number.

Tip: Use IP addresses where possible to avoid the overhead of a DNS lookup for every single connection to the wiki.

  will be faster than  

DBPort>Special:MyLanguage/Manual:$wgDBport|$wgDBport is only for PostgreSQL configuration.