From dde5c67ba041dc65588377808b1943fdd3b57bf6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 7 Apr 2010 15:07:59 +0000 Subject: - Patch #302327 by Josh Waihi, noahb, Crell, hswong3i: support cross-schema/database prefixing like we claim to. --- sites/default/default.settings.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sites') diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 6a3a4a77d..b219e67a8 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -131,6 +131,22 @@ * 'authmap' => 'shared_', * ); * + * You can also use db_prefix as a reference to a schema/database. This maybe + * useful if your Drupal installation exists in a schema that is not the default + * or you want to access several databases from the same code base at the same + * time. + * Example: + * + * $db_prefix = array( + * 'default' => 'main.', + * 'users' => 'shared.', + * 'sessions' => 'shared.', + * 'role' => 'shared.', + * 'authmap' => 'shared.', + * ); + * + * NOTE: MySQL and SQLite's definition of a schema is a database. + * * Database configuration format: * $databases['default']['default'] = array( * 'driver' => 'mysql', -- cgit v1.2.3