blob: 610f6081d2678a56ade3bba234cd8b13cea5cd0f [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
32$active_group = "test";
33
34$db['default']['hostname'] = "localhost";
35$db['default']['username'] = "root";
36$db['default']['password'] = "";
37$db['default']['database'] = "ellislab";
38$db['default']['dbdriver'] = "mysql";
39$db['default']['dbprefix'] = "";
40$db['default']['active_r'] = TRUE;
41$db['default']['pconnect'] = FALSE;
42$db['default']['db_debug'] = TRUE;
43
44
45
46$db['test']['hostname'] = "localhost";
47$db['test']['username'] = "root";
48$db['test']['password'] = "";
49$db['test']['database'] = "tester";
50$db['test']['dbdriver'] = "mysql";
51$db['test']['dbprefix'] = "";
52$db['test']['active_r'] = TRUE;
53$db['test']['pconnect'] = FALSE;
54$db['test']['db_debug'] = TRUE;
55
56
57?>