Hi all,
I'm trying to built 5 seperate websites with seperate content but they have to share same user database. Is it possible to build user-shared multisites with drupal?

Comments

josesanmartin’s picture

Yes.

Just edit your setting.php file. (detailed instructions can be found in settings.php itself)

Change the line:

$db_prefix = "mysite2_";

to:

$db_prefix = array(
     'default'   => 'mysite2_',
     'users'     => 'shared_',
     'sessions'  => 'shared_',
     'role'      => 'shared_',
     'authmap'   => 'shared_',
     'sequences' => 'shared_',
);

Of course, you have to have shared_users, shared_sessions, etc., in your database.

Regards.

José San Martin

José San Martin
http://www.chuva-inc.com/

vm’s picture

yes, read settings.php for more information on sharing tables in a shared database using prefixes

here are two pages to help you : http://drupal.org/node/107347 and http://drupal.org/node/43816