Added support for table prefix

This commit is contained in:
Espen Lorentzen 2013-08-17 17:50:06 +02:00
parent 1ee94fbe71
commit 3fb9c54d2f
2 changed files with 15 additions and 5 deletions

View File

@ -55,7 +55,7 @@ $db['default']['username'] = $CI->config->item('db_username');
$db['default']['password'] = $CI->config->item('db_password');
$db['default']['database'] = $CI->config->item('db_database');
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['dbprefix'] = $CI->config->item('db_prefix');
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;

View File

@ -15,10 +15,20 @@ $config['site_name'] = 'Stikked';
* The database structure will be created automatically
*
*/
$config['db_hostname'] = '127.0.0.1';
$config['db_database'] = 'stikked';
$config['db_username'] = 'stikked';
$config['db_password'] = 'stikked';
$config['db_hostname'] = '127.0.0.1';
$config['db_database'] = 'stikked';
$config['db_username'] = 'stikked';
$config['db_password'] = 'stikked';
/**
* Table prefix
* Generate table prefix for stikked db, commonly used if the webhoster only have one db.
* Use underscore as suffix to easily see the tables.
* use $config['db_password'] = ''; if you dont want to use table prefix.
*/
$config['db_prefix'] = 'stikked_';
/**
* Theme