On my local setup, I have wgDBservers configured, but after updating from 1.35.2 to 1.36.0, this setting appears to be no longer used by mw-config, and the connection to the database fails as a result. Doing some println debugging shows that when mw-config goes to connect to the database, it is using the default database settings, which I have not overridden in LocalSettings.php. The settings in wgDBservers do appear to be in scope at that time (via $this->getVar('wgDBservers')). Issue is still present in 1.36.1. Workaround is to use maintenance/update.php instead.
List of steps to reproduce (step by step, including full links if applicable):
- Use wgDBservers to configure the database in a 1.35.2 installation. Here is my redacted configuration:
$wgDBservers = [ [ 'host' => "[REDACTED]", 'dbname' => "[REDACTED]", 'user' => "[REDACTED]", 'password' => "[REDACTED]", 'type' => "mysql", 'flags' => DBO_SSL, 'load' => 1, 'sslCAFile' => "[REDACTED]", ], ];
- Update to 1.36.0.
- Use mw-config (browser-based installer) to finish the update.
What happens?:
Installer is unable to connect to the database:
An error was encountered when connecting to the database using the settings specified in LocalSettings.php. Please fix these settings and try again. Cannot access the database: :real_connect(): (HY000/2002): No such file or directory
What should have happened instead?:
Installer should have been able to connect to the database.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc: