Manual:$wgDBport

From Linux Web Expert

<translate> PostgreSQL-specific</translate>: $wgDBport
Database port. Only used by PostgreSQL.
<translate> Introduced in version:</translate>1.7.0 (r15118)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(number or empty string if not set)
<translate> Default value:</translate>5432

Details

Port number used by the PostgreSQL database. If left blank, the appropriate port number is used.

This setting is not applicable to MySQL. See $wgDBserver if you need a non-standard port for MySQL.