Team,
I’m running an install of 2.1.3 on a local MAMP box and a remote server (at EngineHosting). I am version controlling changes between the two using GIT and both installs are running off a separate database.
In order to accommodate the separate databases I am performing a server http host check in my database.php file like so,
if ($_SERVER['HTTP_HOST'] == "dev.localdevsite.com") {
$active_group = 'localdev';
} else {
$active_group = 'expressionengine';
}Today I attempted to upgrade the install to the 2.1.4 Beta (on the MAMP install) and hit ‘can’t connect to database’ error (controllers/wizard.php line 1452).
Looking at wizard.php around the error I saw that line 1488 is trying to connect to the remote DB
$this->load->database($db['expressionengine'], FALSE, TRUE);I got around the issue by editing the file to load my local MAMP DB like so
$this->load->database($db['localdev'], FALSE, TRUE);I could then perform the update locally, sync changes to the remote server and continue on (thankfully).
I was wondering whether this would be considered a bug as the $active_group method for DB config is the recommended method?
Could the wizard look for the active group and make it changes based off that?
Thanks,