Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 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:
|
Derek Allard | 6b397a8 | 2008-04-20 17:49:09 +0000 | [diff] [blame] | 20 | mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 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.
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 25 | | ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
| 26 | | ['cachedir'] The path to the folder where cache files should be stored
|
Derek Jones | 35683d6 | 2008-01-16 21:22:03 +0000 | [diff] [blame] | 27 | | ['char_set'] The character set used in communicating with the database
|
| 28 | | ['dbcollat'] The character collation used in communicating with the database
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 29 | |
|
| 30 | | The $active_group variable lets you choose which connection group to
|
| 31 | | make active. By default there is only one group (the "default" group).
|
| 32 | |
|
Derek Jones | 75d568d | 2008-01-30 20:26:25 +0000 | [diff] [blame] | 33 | | The $active_record variables lets you determine whether or not to load
|
| 34 | | the active record class
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 35 | */
|
| 36 |
|
| 37 | $active_group = "default";
|
Derek Jones | 75d568d | 2008-01-30 20:26:25 +0000 | [diff] [blame] | 38 | $active_record = TRUE;
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 39 |
|
| 40 | $db['default']['hostname'] = "localhost";
|
| 41 | $db['default']['username'] = "";
|
| 42 | $db['default']['password'] = "";
|
| 43 | $db['default']['database'] = "";
|
| 44 | $db['default']['dbdriver'] = "mysql";
|
| 45 | $db['default']['dbprefix'] = "";
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 46 | $db['default']['pconnect'] = TRUE;
|
| 47 | $db['default']['db_debug'] = TRUE;
|
| 48 | $db['default']['cache_on'] = FALSE;
|
| 49 | $db['default']['cachedir'] = "";
|
| 50 | $db['default']['char_set'] = "utf8";
|
| 51 | $db['default']['dbcollat'] = "utf8_general_ci";
|
| 52 |
|
Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame] | 53 |
|
| 54 | /* End of file database.php */
|
Derek Jones | a3ffbbb | 2008-05-11 18:18:29 +0000 | [diff] [blame] | 55 | /* Location: ./system/application/config/database.php */ |