This is my first time here so I will do my best to follow the guidelines for submitting a bug / contributing here. Thank you in advance for all of the suggestions and thoughts.
Reproduction Instructions
Following this, specifically, the Manual Installation instructions with up to date MediaWiki:
- Use PHP 7.3 and up to date MediaWiki (see version below)
- Choose PostgreSQL as Database type in the Connect to database step
- Enter a port in Database port (and everything else that applies)
- See error after trying to Contiue:
Cannot connect to database <DB_NAME>: Cannot access the database: pg_connect(): Unable to connect to PostgreSQL s**bold text**erver: could not connect to server: Connection refused Is the server running on host <HOST_NAME> (<IP_ADDRESS>) and accepting TCP/IP connections on port <NOT_PORT_SPECIFIED_EARLIER>?
Phabricator/Arcanist Version
Phabricator version: 0de13c6125b9
Proposed solution
Add 'port' => $this->getVar( 'wgDBport' ) to openConnectionToAnyDB() here
I can go ahead and submit a pull request with these changes if they do appropriately address the issue.