summaryrefslogtreecommitdiff
path: root/sites
diff options
context:
space:
mode:
Diffstat (limited to 'sites')
-rw-r--r--sites/default/default.settings.php16
1 files changed, 16 insertions, 0 deletions
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',