CodeIgniter Forums

Full Version: Error when accessing website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]bleu[/eluser]
i am getting this error

Code:
A Database Error Occurred  Unable to select the specified database:cxcxcxc  Filename: C:\wamp\www\xyx\system\database\DB_driver.php  Line Number: 140

Can anybody help me ?

El Forum

[eluser]Glazz[/eluser]
The error is self explanatory.

The database "cxcxcxc" doesn't exist.

El Forum

[eluser]bleu[/eluser]
No, Actually it does it was working fine some time back now it is giving me this error

El Forum

[eluser]Glazz[/eluser]
Check your database settings then, there must be something wrong with your settings.

El Forum

[eluser]bleu[/eluser]
My database file is setup like this


$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'cxcxcxc';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = FALSE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;