Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 1 | <?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 | | ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
| 27 | | ['cachedir'] The path to the folder where cache files should be stored
|
Derek Jones | 35683d6 | 2008-01-16 21:22:03 +0000 | [diff] [blame] | 28 | | ['char_set'] The character set used in communicating with the database
|
| 29 | | ['dbcollat'] The character collation used in communicating with the database
|
Derek Allard | 39b622d | 2008-01-16 21:10:09 +0000 | [diff] [blame] | 30 | |
|
| 31 | | The $active_group variable lets you choose which connection group to
|
| 32 | | make active. By default there is only one group (the "default" group).
|
| 33 | |
|
| 34 | */
|
| 35 |
|
| 36 | $active_group = "default";
|
| 37 |
|
| 38 | $db['default']['hostname'] = "localhost";
|
| 39 | $db['default']['username'] = "";
|
| 40 | $db['default']['password'] = "";
|
| 41 | $db['default']['database'] = "";
|
| 42 | $db['default']['dbdriver'] = "mysql";
|
| 43 | $db['default']['dbprefix'] = "";
|
| 44 | $db['default']['active_r'] = TRUE;
|
| 45 | $db['default']['pconnect'] = TRUE;
|
| 46 | $db['default']['db_debug'] = TRUE;
|
| 47 | $db['default']['cache_on'] = FALSE;
|
| 48 | $db['default']['cachedir'] = "";
|
| 49 | $db['default']['char_set'] = "utf8";
|
| 50 | $db['default']['dbcollat'] = "utf8_general_ci";
|
| 51 |
|
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 52 | ?> |