p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Drupal (http://p2p.wrox.com/forumdisplay.php?f=469)
-   -   Multi Sites (http://p2p.wrox.com/showthread.php?t=81728)

XTCHost November 28th, 2010 05:33 PM

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

amitavroy November 12th, 2011 02:32 PM

are you trying to add drupal's user data into the table?

XTCHost November 13th, 2011 05:50 PM

Drupal Multi site
 
Quote:

Originally Posted by amitavroy (Post 278276)
are you trying to add drupal's user data into the table?

It was so long ago now I have forgotten what I was trying to do

But looking at it I assume it was using a main database for each site but creating a database just for the users details which could be shared by each site

Once joining one site you would be a member of all the sites and can use the same log in details

Each site would have its own data

Hope that heps expalin it or is there any where I can look up how to use multi databases with Drupal 7

Russell


All times are GMT -4. The time now is 02:29 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.