Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Drupal
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 05:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.