admin | b0dd10f | 2006-08-25 17:25:49 +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. |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 16 | | ['username'] The username used to connect to the database |
| 17 | | ['password'] The password used to connect to the database |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 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 |
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 21 | | ['dbprefix'] You can add an optional prefix, which will be added |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 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 |
admin | 6dfa713 | 2006-10-20 05:01:30 +0000 | [diff] [blame] | 26 | | ['cache_on'] TRUE/FALSE - Enables/disables query caching |
| 27 | | ['cachedir'] The path to the folder where cache files should be stored |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 28 | | |
| 29 | | The $active_group variable lets you choose which connection group to |
| 30 | | make active. By default there is only one group (the "default" group). |
| 31 | | |
| 32 | */ |
| 33 | |
admin | e6ed3d9 | 2006-09-03 18:38:18 +0000 | [diff] [blame] | 34 | $active_group = "default"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 35 | |
| 36 | $db['default']['hostname'] = "localhost"; |
admin | e7e1dcd | 2006-10-21 18:04:01 +0000 | [diff] [blame] | 37 | $db['default']['username'] = "root"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 38 | $db['default']['password'] = ""; |
admin | 0518661 | 2006-10-28 03:28:01 +0000 | [diff] [blame^] | 39 | $db['default']['database'] = "test"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 40 | $db['default']['dbdriver'] = "mysql"; |
| 41 | $db['default']['dbprefix'] = ""; |
| 42 | $db['default']['active_r'] = TRUE; |
admin | 10c3f41 | 2006-10-08 07:21:12 +0000 | [diff] [blame] | 43 | $db['default']['pconnect'] = TRUE; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 44 | $db['default']['db_debug'] = TRUE; |
admin | 0518661 | 2006-10-28 03:28:01 +0000 | [diff] [blame^] | 45 | $db['default']['cache_on'] = FALSE; |
admin | e7e1dcd | 2006-10-21 18:04:01 +0000 | [diff] [blame] | 46 | $db['default']['cachedir'] = APPPATH.'dbcache/'; |
admin | 6871d95 | 2006-10-04 00:36:18 +0000 | [diff] [blame] | 47 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 48 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 49 | ?> |