Hi. After creating two new sites, but before installing the database, I modify settings.php:
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'bikes',
'username' => 'my-user-name',
'password' => 'my-password',
'host' => 'localhost',
'prefix' => array(
'default' => 'mountainbikes_',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
),
);
$db_prefix = array(
'default' => 'mountainbikes_',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
);
...for a site named mountainbikes and a second site called roadbikes. The above is for mountainbikes, I change the two instances of 'mountainbikes' to 'roadbikes' for the other site. I then create the database as follows:
> drop database bikes;create database bikes;show databases;
and I see the empty bikes database created (and I confirm its empty).