[support] FW: Multisite help
Roberovsky Kuz
roberovsky at hotmail.com
Wed Jul 17 05:26:58 UTC 2013
I have couple websites running in Drupal 7.22
All websites share the same code, but each website has its own database, no
sharing with prefix, I want to share common functionalities among sites,
like users, content type and other
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Cary Gordon
Sent: Wednesday, July 17, 2013 1:06 AM
To: support at drupal.org
Subject: Re: [support] Multisite help
This doesn't really explain what your are trying to do or what your problem
is.
Cary
On Jul 15, 2013, at 12:33 PM, Roberovsky Kuz <roberovsky at hotmail.com
<mailto:roberovsky at hotmail.com> > wrote:
I need help sharing users with 2 sites
I have 2 sites sharing the same code, but each site has different database
Site 1
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'site1',
'username' => 'user_db',
'password' => 'password',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
Site 2
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'site2',
'username' => 'user_db',
'password' => 'password',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
Configuration to share tables between databases
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'site1',
'username' => 'user_db',
'password' => 'password',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => array(
'default' => 'site1_',
'users' => 'site2_',
),
),
),
);
--
[ Drupal support list | <http://lists.drupal.org/> http://lists.drupal.org/
]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130717/7483c558/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Untitled attachment 01998.txt
Url: http://lists.drupal.org/pipermail/support/attachments/20130717/7483c558/attachment.txt
More information about the support
mailing list