blob: 96608f78754f7186020f08b71bf0f31b9f807799 [file] [log] [blame]
Taufan Aditya44015c82012-04-04 19:38:16 +07001<?php
2
3return array(
Andrey Andreevf243ce12012-06-09 23:34:21 +03004
Taufan Aditya44015c82012-04-04 19:38:16 +07005 // Typical Database configuration
6 'pdo/mysql' => array(
Andrey Andreevcbd78d82012-06-26 01:03:34 +03007 'dsn' => 'mysql:host=localhost;dbname=ci_test',
Taufan Aditya44015c82012-04-04 19:38:16 +07008 'hostname' => 'localhost',
9 'username' => 'travis',
10 'password' => '',
11 'database' => 'ci_test',
12 'dbdriver' => 'pdo',
Andrey Andreevfbba54e2012-06-23 20:26:31 +030013 'subdriver' => 'mysql'
Taufan Aditya44015c82012-04-04 19:38:16 +070014 ),
15
16 // Database configuration with failover
17 'pdo/mysql_failover' => array(
18 'dsn' => '',
19 'hostname' => 'localhost',
20 'username' => 'not_travis',
21 'password' => 'wrong password',
22 'database' => 'not_ci_test',
23 'dbdriver' => 'pdo',
Andrey Andreevfbba54e2012-06-23 20:26:31 +030024 'subdriver' => 'mysql',
Taufan Aditya44015c82012-04-04 19:38:16 +070025 'failover' => array(
26 array(
Andrey Andreev0bb13812012-06-26 00:44:42 +030027 'dsn' => 'mysql:host=localhost;dbname=ci_test',
Taufan Aditya44015c82012-04-04 19:38:16 +070028 'hostname' => 'localhost',
29 'username' => 'travis',
30 'password' => '',
31 'database' => 'ci_test',
32 'dbdriver' => 'pdo',
Andrey Andreevfbba54e2012-06-23 20:26:31 +030033 'subdriver' => 'mysql'
Andrey Andreevf243ce12012-06-09 23:34:21 +030034 )
35 )
36 )
Taufan Aditya44015c82012-04-04 19:38:16 +070037);