Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | return array( |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 4 | |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 5 | // Typical Database configuration |
| 6 | 'mysql' => array( |
| 7 | 'dsn' => '', |
| 8 | 'hostname' => 'localhost', |
| 9 | 'username' => 'travis', |
| 10 | 'password' => '', |
| 11 | 'database' => 'ci_test', |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 12 | 'dbdriver' => 'mysql' |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 13 | ), |
| 14 | |
| 15 | // Database configuration with failover |
| 16 | 'mysql_failover' => array( |
| 17 | 'dsn' => '', |
| 18 | 'hostname' => 'localhost', |
| 19 | 'username' => 'not_travis', |
| 20 | 'password' => 'wrong password', |
| 21 | 'database' => 'not_ci_test', |
| 22 | 'dbdriver' => 'mysql', |
| 23 | 'failover' => array( |
| 24 | array( |
| 25 | 'dsn' => '', |
| 26 | 'hostname' => 'localhost', |
| 27 | 'username' => 'travis', |
| 28 | 'password' => '', |
| 29 | 'database' => 'ci_test', |
| 30 | 'dbdriver' => 'mysql', |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 31 | ) |
| 32 | ) |
| 33 | ) |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 34 | ); |