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. |
| 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 | |
admin | e6ed3d9 | 2006-09-03 18:38:18 +0000 | [diff] [blame] | 32 | $active_group = "default"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 33 | |
| 34 | $db['default']['hostname'] = "localhost"; |
admin | 41a1685 | 2006-09-26 18:17:19 +0000 | [diff] [blame^] | 35 | $db['default']['username'] = "root"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 36 | $db['default']['password'] = ""; |
admin | 41a1685 | 2006-09-26 18:17:19 +0000 | [diff] [blame^] | 37 | $db['default']['database'] = "test"; |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 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 | |
admin | b0dd10f | 2006-08-25 17:25:49 +0000 | [diff] [blame] | 44 | ?> |