blob: fcdefda7151a3eff917afbbe604a7201498a73b2 [file] [log] [blame]
Derek Allard2067d1a2008-11-13 22:59:24 +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, sqlite, oci8
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| ['cache_on'] TRUE/FALSE - Enables/disables query caching
26| ['cachedir'] The path to the folder where cache files should be stored
27| ['char_set'] The character set used in communicating with the database
28| ['dbcollat'] The character collation used in communicating with the database
Derek Jonesad1171a2010-03-10 14:18:38 -060029| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
30| ['autoinit'] Whether or not to automatically initialize the database.
Derek Jonesc34e5782010-03-02 17:35:55 -060031| ['stricton'] TRUE/FALSE - forces "Strict Mode" connections
32| - good for ensuring strict SQL while developing
Derek Allard2067d1a2008-11-13 22:59:24 +000033|
34| The $active_group variable lets you choose which connection group to
35| make active. By default there is only one group (the "default" group).
36|
37| The $active_record variables lets you determine whether or not to load
38| the active record class
39*/
40
41$active_group = "default";
42$active_record = TRUE;
43
44$db['default']['hostname'] = "localhost";
45$db['default']['username'] = "";
46$db['default']['password'] = "";
47$db['default']['database'] = "";
48$db['default']['dbdriver'] = "mysql";
49$db['default']['dbprefix'] = "";
50$db['default']['pconnect'] = TRUE;
51$db['default']['db_debug'] = TRUE;
52$db['default']['cache_on'] = FALSE;
53$db['default']['cachedir'] = "";
54$db['default']['char_set'] = "utf8";
55$db['default']['dbcollat'] = "utf8_general_ci";
Derek Jonesad1171a2010-03-10 14:18:38 -060056$db['default']['swap_pre'] = "";
57$db['default']['autoinit'] = TRUE;
Derek Jonesc34e5782010-03-02 17:35:55 -060058$db['default']['stricton'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +000059
60
61/* End of file database.php */
Derek Jonesa3ffbbb2008-05-11 18:18:29 +000062/* Location: ./system/application/config/database.php */