summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorFelix Balfoort <fhjbalfoort@gmail.com>2011-11-29 22:29:33 +0100
committerFelix Balfoort <fhjbalfoort@gmail.com>2011-11-29 22:29:33 +0100
commit292a0f661baedaa0a2bd61795e564c4195f4b0b8 (patch)
tree89281eeda4aa2eede95d64cd0adf7bcbbcd91d79 /user_guide_src/source
parent68f5d49d838fb2822b0f41e9b270f57e386f3fe4 (diff)
Changed the array structure in the userguide
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/database/configuration.rst52
1 files changed, 36 insertions, 16 deletions
diff --git a/user_guide_src/source/database/configuration.rst b/user_guide_src/source/database/configuration.rst
index 60a2026e5..433c67152 100644
--- a/user_guide_src/source/database/configuration.rst
+++ b/user_guide_src/source/database/configuration.rst
@@ -31,22 +31,42 @@ prototype::
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::
- $db['default']['failover'][0]['hostname'] = 'localhost1';
- $db['default']['failover'][0]['username'] = '';
- $db['default']['failover'][0]['password'] = '';
- $db['default']['failover'][0]['database'] = '';
- $db['default']['failover'][0]['dbdriver'] = 'mysql';
- $db['default']['failover'][0]['dbprefix'] = '';
- $db['default']['failover'][0]['pconnect'] = TRUE;
- $db['default']['failover'][0]['db_debug'] = TRUE;
- $db['default']['failover'][0]['cache_on'] = FALSE;
- $db['default']['failover'][0]['cachedir'] = '';
- $db['default']['failover'][0]['char_set'] = 'utf8';
- $db['default']['failover'][0]['dbcollat'] = 'utf8_general_ci';
- $db['default']['failover'][0]['swap_pre'] = '';
- $db['default']['failover'][0]['autoinit'] = TRUE;
- $db['default']['failover'][0]['stricton'] = FALSE;
- $db['default']['failover'][0]['failover'] = array();
+ $db['default']['failover'] = array(
+ array(
+ 'hostname' => 'localhost1',
+ 'username' => '',
+ 'password' => '',
+ 'database' => '',
+ 'dbdriver' => 'mysql',
+ 'dbprefix' => '',
+ 'pconnect' => TRUE,
+ 'db_debug' => TRUE,
+ 'cache_on' => FALSE,
+ 'cachedir' => '',
+ 'char_set' => 'utf8',
+ 'dbcollat' => 'utf8_general_ci',
+ 'swap_pre' => '',
+ 'autoinit' => TRUE,
+ 'stricton' => FALSE
+ ),
+ array(
+ 'hostname' => 'localhost2',
+ 'username' => '',
+ 'password' => '',
+ 'database' => '',
+ 'dbdriver' => 'mysql',
+ 'dbprefix' => '',
+ 'pconnect' => TRUE,
+ 'db_debug' => TRUE,
+ 'cache_on' => FALSE,
+ 'cachedir' => '',
+ 'char_set' => 'utf8',
+ 'dbcollat' => 'utf8_general_ci',
+ 'swap_pre' => '',
+ 'autoinit' => TRUE,
+ 'stricton' => FALSE
+ )
+ );
You can specify as many failovers as you like.