blob: c594ba896652e248c41220952fd4f57d9843e97f [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2/*
3| -------------------------------------------------------------------
4| DATABASE CONNECTIVITY SETTINGS
5| -------------------------------------------------------------------
6| This file will contain the settings needed to access your database.
7|
8| For complete instructions please consult the "Database Connection"
9| page of the User Guide.
10|
11| -------------------------------------------------------------------
12| EXPLANATION OF VARIABLES
13| -------------------------------------------------------------------
14|
15| ['hostname'] The hostname of your database server.
16| ['username'] The username used to connect to the database
17| ['password'] The password used to connect to the database
18| ['database'] The name of the database you want to connect to
19| ['dbdriver'] The database type. ie: mysql. Currently supported:
20 mysql, mysqli, postgre, odbc, mssql
21| ['dbprefix'] You can add an optional prefix, which will be added
22| to the table name when using the Active Record class
23| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
24| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
25| ['active_r'] TRUE/FALSE - Whether to load the active record class
26|
27| The $active_group variable lets you choose which connection group to
28| make active. By default there is only one group (the "default" group).
29|
30*/
31
admine6ed3d92006-09-03 18:38:18 +000032$active_group = "default";
adminb0dd10f2006-08-25 17:25:49 +000033
34$db['default']['hostname'] = "localhost";
admin41a16852006-09-26 18:17:19 +000035$db['default']['username'] = "root";
adminb0dd10f2006-08-25 17:25:49 +000036$db['default']['password'] = "";
adminb87cf232006-10-04 07:46:05 +000037$db['default']['database'] = "test";
adminb0dd10f2006-08-25 17:25:49 +000038$db['default']['dbdriver'] = "mysql";
39$db['default']['dbprefix'] = "";
40$db['default']['active_r'] = TRUE;
admin10c3f412006-10-08 07:21:12 +000041$db['default']['pconnect'] = TRUE;
adminb0dd10f2006-08-25 17:25:49 +000042$db['default']['db_debug'] = TRUE;
adminb1fddc02006-10-09 21:29:07 +000043$db['default']['cache_on'] = FALSE;
admin6871d952006-10-04 00:36:18 +000044$db['default']['cachedir'] = APPPATH.'db_cache/';
45
46
47
48$db['test']['hostname'] = "localhost";
49$db['test']['username'] = "root";
50$db['test']['password'] = "";
51$db['test']['database'] = "exp4";
52$db['test']['dbdriver'] = "mysql";
53$db['test']['dbprefix'] = "";
54$db['test']['active_r'] = TRUE;
55$db['test']['pconnect'] = FALSE;
56$db['test']['db_debug'] = TRUE;
57
58
59
60
61
adminb0dd10f2006-08-25 17:25:49 +000062
adminb0dd10f2006-08-25 17:25:49 +000063?>