[eluser]Ckirk[/eluser]
If you look at your config file "application/config/database.php" by default you will see the variable:
Code:
$active_group = 'default';
Underneath that you will see all the parameters for the 'default' group.
Code:
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'yourdatabase';
$db['default']['dbdriver'] = 'mysql';
....................................
You've set 'database' to load in your autoload so your CI application will automatically do:
Code:
$this->db->load('default')
so you don't have to
When you use $this->db->load() with no input parameter it uses the group as defined by the $active_group variable (which is what the autoload will handle).
You're asking it to override that variable and load the database group called 'proj' so you must have that in your config file, otherwise it will fail. If 'proj' is the only database group you'll ever connect to then just set
Code:
$active_group = 'proj';
and add in the database group
Code:
$db['default']['hostname'] = 'localhost';
$db['proj']['username'] = 'root';
$db['proj']['password'] = '';
$db['proj']['database'] = 'yourdatabase';
$db['proj']['dbdriver'] = 'mysql';
....................................
There's no real need to change everything to proj though. I'd just leave it all at default and run with that