Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Drupal section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2010, 05:33 PM
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
 
Old November 12th, 2011, 02:32 PM
Authorized User
Points: 56, Level: 1
Points: 56, Level: 1 Points: 56, Level: 1 Points: 56, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2007
Location: Vashi, Maharashtra, India.
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

are you trying to add drupal's user data into the table?
__________________
Regards
Amitav Roy
Web:
http://www.amitavroy.com/justread
http://www.pixelgroups.com
 
Old November 13th, 2011, 05:50 PM
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 Drupal Multi site

Quote:
Originally Posted by amitavroy View Post
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




Similar Threads
Thread Thread Starter Forum Replies Last Post
Sites not listed after creation stokerfed SharePoint Admin 1 June 5th, 2007 02:29 PM
cert sites? vartham Need help with your homework? 1 October 28th, 2006 12:22 PM
multi-multi-multiple Insert with subquery??? jmjyiannis SQL Server 2000 1 May 5th, 2006 02:20 PM
Logging into other sites JonnyRPI Classic ASP Basics 4 June 7th, 2003 04:02 PM





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