I'm in the process of creating multi-site with one db, and have a few questions..
If all sites share one db and a person does a search will it search all of the db, or just the prefix for that site?
The other thing I'd like to know is how can I share the user across all sites. So the user can login on one site and it will fall over to the rest so there are no multiple logons.
When doing the shared db...do I need to drop what is being shared and create a new db for that table?
I looked at the settings.php and dont understand all that well
So in my settings.php I have
$database = array (
'default' = >
array(
'default' =>
array(
'database' => 'dbname',
'username' => 'name',
'password' => 'PW',
'host' => 'localhost',
'port'[ => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
So am I suppose to place the code below somewhere in the code above, or is it its own life form?
To provide prefixes for specific tables, set 'prefix' as an array.
* The array's keys are the table names and the values are the prefixes.
* The 'default' element is mandatory and holds the prefix for any tables
* not specified elsewhere in the array. Example:
* @code
* 'prefix' => array(
* 'default' => 'main_',
* 'users' => 'shared_',
* 'sessions' => 'shared_',