Problem/Motivation
When checking to see if the databases array exists, we check isset($databases) but we really need to be checking to see if the default key exists within the database as the default settings.php file includes a completely empty $databases array by default. So it is set, but doesn't have keys.
Steps to reproduce
Install drupal/mysql57, follow documented steps to require settings.inc and use drush site:install to attempt installation.
Proposed resolution
Add additional check for if databases default key is present.
Issue fork mysql57-3453759
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
eporama commentedI created a quick MR that simply checks to also see if the default database role is available as an array key.
Comment #6
effulgentsia commentedThanks! Merged, and will tag beta3 with it shortly.