Manual:$wgDBport

PostgreSQL-specific: $wgDBport
Database port. Only used by PostgreSQL.
Introduced in version:1.7.0 (r15118)
Removed in version:Still in use
Allowed values:(number or empty string if not set)
Default value: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.