summaryrefslogtreecommitdiffstats
path: root/tests/mocks/database/config/pdo/mysql.php
blob: 89e9fb1301599d071ac13d82d10e315d4336ab04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

return array(

	// Typical Database configuration
	'pdo/mysql' => array(
		'dsn' => 'mysql:host=127.0.0.1;dbname=ci_test',
		'hostname' => '127.0.0.1',
		'username' => 'travis',
		'password' => 'travis',
		'database' => 'ci_test',
		'dbdriver' => 'pdo',
		'subdriver' => 'mysql'
	),

	// Database configuration with failover
	'pdo/mysql_failover' => array(
		'dsn' => '',
		'hostname' => '127.0.0.1',
		'username' => 'not_travis',
		'password' => 'wrong password',
		'database' => 'not_ci_test',
		'dbdriver' => 'pdo',
		'subdriver' => 'mysql',
		'failover' => array(
			array(
				'dsn' => 'mysql:host=127.0.0.1;dbname=ci_test',
				'hostname' => '127.0.0.1',
				'username' => 'travis',
				'password' => 'travis',
				'database' => 'ci_test',
				'dbdriver' => 'pdo',
				'subdriver' => 'mysql'
			)
		)
	)
);