config.php 1.38 KB
Newer Older
w  
Qiang Xue committed
1
<?php
Alexander Makarov committed
2 3 4
return [
	'databases' => [
		'cubrid' => [
Carsten Brandt committed
5 6 7 8
			'dsn' => 'cubrid:dbname=demodb;host=localhost;port=33000',
			'username' => 'dba',
			'password' => '',
			'fixture' => __DIR__ . '/cubrid.sql',
Alexander Makarov committed
9 10
		],
		'mysql' => [
11 12 13 14
			'dsn' => 'mysql:host=127.0.0.1;dbname=yiitest',
			'username' => 'travis',
			'password' => '',
			'fixture' => __DIR__ . '/mysql.sql',
Alexander Makarov committed
15 16
		],
		'sqlite' => [
17 18
			'dsn' => 'sqlite::memory:',
			'fixture' => __DIR__ . '/sqlite.sql',
Alexander Makarov committed
19 20
		],
		'sqlsrv' => [
resurtm committed
21 22 23 24
			'dsn' => 'sqlsrv:Server=localhost;Database=test',
			'username' => '',
			'password' => '',
			'fixture' => __DIR__ . '/mssql.sql',
Alexander Makarov committed
25 26
		],
		'pgsql' => [
27
			'dsn' => 'pgsql:host=localhost;dbname=yiitest;port=5432;',
28 29 30
			'username' => 'postgres',
			'password' => 'postgres',
			'fixture' => __DIR__ . '/postgres.sql',
Alexander Makarov committed
31
		],
32
		'elasticsearch' => [
33
			'dsn' => 'elasticsearch://localhost:9200'
34
		],
35
		'redis' => [
36 37 38
			'hostname' => 'localhost',
			'port' => 6379,
			'database' => 0,
39
			'password' => null,
40
		],
Alexander Makarov committed
41
	],
42 43 44
	'sphinx' => [
		'sphinx' => [
			'dsn' => 'mysql:host=127.0.0.1;port=9306;',
45
			'username' => 'travis',
46 47 48 49 50 51 52 53
			'password' => '',
		],
		'db' => [
			'dsn' => 'mysql:host=127.0.0.1;dbname=yiitest',
			'username' => 'travis',
			'password' => '',
			'fixture' => __DIR__ . '/sphinx/source.sql',
		],
54
	],
55
	'mongodb' => [
Klimov Paul committed
56
		'dsn' => 'mongodb://travis:test@localhost:27017',
Paul Klimov committed
57
		'defaultDatabaseName' => 'yii2test',
58
		'options' => [],
59
	]
Alexander Makarov committed
60
];