Closed dkingofpa closed 12 years ago
Default single database setup for drupal when drush site-install
is run:
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'databasename',
'username' => 'username',
'password' => 'password',
'host' => 'localhost',
);
I changed the database user from dbuser
to username
on the develop branch. But all the other settings remain the same. Setting the database name to databasename
doesn't make sense. Leaving it as drupal
. Still need to update documentation.
Actually, a default database is only added to settings.php during the site-install command. Not during a command with --prepare-install specified. There may be differences between Drush 4.5 and Drush 5 with the --prepare-install option. Seems like 4.5 will populate the $databases array while 5 does not. I'm going with Drush 5's behavior.
The default Drupal settings.php file has default db credentials already set, let's use those for the db credentials in our Vagrantfile. This will keep us from having to update the db credentials in settings.php after we do a drush make --prepare-install. Any questions, ask Christian. :)
Don't forget to update documentation.