[1] | 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, 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 |
---|
| 29 | | NOTE: For MySQL and MySQLi databases, this setting is only used |
---|
| 30 | | as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7 |
---|
| 31 | | (and in table creation queries made with DB Forge). |
---|
| 32 | | There is an incompatibility in PHP with mysql_real_escape_string() which |
---|
| 33 | | can make your site vulnerable to SQL injection if you are using a |
---|
| 34 | | multi-byte character set and are running versions lower than these. |
---|
| 35 | | Sites using Latin-1 or UTF-8 database character set and collation are unaffected. |
---|
| 36 | | ['swap_pre'] A default table prefix that should be swapped with the dbprefix |
---|
| 37 | | ['autoinit'] Whether or not to automatically initialize the database. |
---|
| 38 | | ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections |
---|
| 39 | | - good for ensuring strict SQL while developing |
---|
| 40 | | |
---|
| 41 | | The $active_group variable lets you choose which connection group to |
---|
| 42 | | make active. By default there is only one group (the 'default' group). |
---|
| 43 | | |
---|
| 44 | | The $active_record variables lets you determine whether or not to load |
---|
| 45 | | the active record class |
---|
| 46 | */ |
---|
| 47 | |
---|
| 48 | $active_group = 'default'; |
---|
| 49 | $active_record = TRUE; |
---|
| 50 | |
---|
[230] | 51 | $db['default']['hostname'] = ''; |
---|
| 52 | $db['default']['username'] = ''; |
---|
| 53 | $db['default']['password'] = ''; |
---|
| 54 | $db['default']['database'] = ''; |
---|
| 55 | $db['default']['dbdriver'] = ''; |
---|
| 56 | $db['default']['dbprefix'] = ''; |
---|
| 57 | $db['default']['pconnect'] = TRUE; |
---|
| 58 | $db['default']['db_debug'] = TRUE; |
---|
| 59 | $db['default']['cache_on'] = FALSE; |
---|
| 60 | $db['default']['cachedir'] = ''; |
---|
| 61 | $db['default']['char_set'] = 'utf8'; |
---|
| 62 | $db['default']['dbcollat'] = 'utf8_general_ci'; |
---|
| 63 | $db['default']['swap_pre'] = ''; |
---|
| 64 | $db['default']['autoinit'] = TRUE; |
---|
| 65 | $db['default']['stricton'] = FALSE; |
---|
| 66 | |
---|
| 67 | |
---|
[228] | 68 | /* $db['default']['hostname'] = 'mysql:host=localhost';
|
---|
[1] | 69 | $db['default']['username'] = 'root'; |
---|
| 70 | $db['default']['password'] = 'root';
|
---|
| 71 | $db['default']['database'] = 'bachkim';
|
---|
| 72 | $db['default']['dbdriver'] = 'pdo'; |
---|
| 73 | $db['default']['dbprefix'] = ''; |
---|
| 74 | $db['default']['pconnect'] = TRUE; |
---|
| 75 | $db['default']['db_debug'] = TRUE; |
---|
| 76 | $db['default']['cache_on'] = FALSE; |
---|
| 77 | $db['default']['cachedir'] = ''; |
---|
| 78 | $db['default']['char_set'] = 'utf8'; |
---|
| 79 | $db['default']['dbcollat'] = 'utf8_general_ci'; |
---|
| 80 | $db['default']['swap_pre'] = ''; |
---|
| 81 | $db['default']['autoinit'] = TRUE; |
---|
[228] | 82 | $db['default']['stricton'] = FALSE; */ |
---|
[1] | 83 | |
---|
| 84 | |
---|
| 85 | /* $db['newDB']['hostname'] = 'mysql:host=localhost';
|
---|
| 86 | $db['newDB']['username'] = 'root'; |
---|
| 87 | $db['newDB']['password'] = 'root';
|
---|
| 88 | $db['newDB']['database'] = 'new_newDB';
|
---|
| 89 | $db['newDB']['dbdriver'] = 'pdo'; |
---|
| 90 | $db['newDB']['dbprefix'] = ''; |
---|
| 91 | $db['newDB']['pconnect'] = TRUE; |
---|
| 92 | $db['newDB']['db_debug'] = TRUE; |
---|
| 93 | $db['newDB']['cache_on'] = FALSE; |
---|
| 94 | $db['newDB']['cachedir'] = ''; |
---|
| 95 | $db['newDB']['char_set'] = 'utf8'; |
---|
| 96 | $db['newDB']['dbcollat'] = 'utf8_general_ci'; |
---|
| 97 | $db['newDB']['swap_pre'] = ''; |
---|
| 98 | $db['newDB']['autoinit'] = TRUE; |
---|
| 99 | $db['newDB']['stricton'] = FALSE; */ |
---|
| 100 | |
---|
| 101 | /* End of file database.php */ |
---|
| 102 | /* Location: ./application/config/database.php */ |
---|