Thread: Multi Sites
View Single Post
  #1 (permalink)  
Old November 28th, 2010, 05:33 PM
XTCHost XTCHost is offline
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multi Sites

Having read the book and got to the One Drupal, Many Websites part where I want to create two site or more, with all sites sharing the same user database, I am having problems.

I have two sites sharing the same D7 core files / modules which will be good for updating, which I am sure there will be a lot of, but I am struggling to get the sites to share a user database.

I currently have

$databases = array (
'default' =>
array (
'default' =>
array (
'driver' => 'mysql',
'database' => 'server_site1001',
'username' => 'server_site1001',
'password' => 'password',
'host' => 'localhost',
'port' => '',
'prefix' => '1001_',
),
),
);

I have created a new database called server_members and have a table called mem_users

But I canot seem to get the site to reconise the mem_users table in the server_members database

Hope this is clear

"There really is no magic to getting Drupal to share content between multiple sites" but is there some magic I am missing to share users in separates databases.

Many thanks

Russell
Reply With Quote