summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database/configuration.rst
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-02-10 11:37:09 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-02-10 11:37:09 +0100
commit16af6afe991381360439135ddb0735dab1280fed (patch)
treedef14317577f8f1f4eba47f5bb4db2c744c8f330 /user_guide_src/source/database/configuration.rst
parentaca5186f7d0746642d42f1c67a5debb7912effea (diff)
parentfdd6ad088cd5c6f29974f23e1a2747c243ecb278 (diff)
Merge pull request #1022 from toopay/pdo
Fixed PDO issues.
Diffstat (limited to 'user_guide_src/source/database/configuration.rst')
-rw-r--r--user_guide_src/source/database/configuration.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/user_guide_src/source/database/configuration.rst b/user_guide_src/source/database/configuration.rst
index 4f88c25ab..040e7e33f 100644
--- a/user_guide_src/source/database/configuration.rst
+++ b/user_guide_src/source/database/configuration.rst
@@ -28,6 +28,10 @@ prototype::
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
+If you use PDO as your dbdriver, you can specify the full DSN string describe a connection to the database like this::
+
+ $db['default']['dsn'] = 'pgsql:host=localhost;port=5432;dbname=database_name';
+
You can also specify failovers for the situation when the main connection cannot connect for some reason.
These failovers can be specified by setting the failover for a connection like this::