Welcome Guest, Not a member yet? Register   Sign In
Error in Database Configuration
#1

[eluser]npCoda[/eluser]
Hello!
I am beginner for CI so don't have good knowledge.
My problem is:
I am not using any database. All the records are fetched from JSON.
Therefore I don't think I need to configure database...
As said by CI, CI doesn't necessarily ask for database.

So my database.php configuration is :

Quote:$active_group = 'default';
$active_record = FALSE;

$db['default']['hostname'] = '';
$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$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;

It works in my local system but doesn't work in live server. I am so surprised.

Then I provided hostname, username, password and dbdriver, it works.
My question is that, is that necessary to provide all the details if I am not using database?

Thank you for your suggestion.


Messages In This Thread
Error in Database Configuration - by El Forum - 06-04-2012, 02:22 AM
Error in Database Configuration - by El Forum - 06-04-2012, 04:11 PM
Error in Database Configuration - by El Forum - 06-04-2012, 04:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB