I was wondering how exactly would we set up fuel to use a database that I have created on my own localhost mysql server.
I've created a database called placement in my localhost mysql server.
I've done the following so far:
In fuel/core/classes/database/mysql/connection.php, I entered the following information :
extract($this->_config + array(
'database' => 'placement',
'hostname' => 'localhost',
'username' => 'myusername',
'password' => 'mypassword',
'persistent' => FALSE,
));
I've also done the following :
protected static $_current_databases = array('placement');
Any ideas?
Huglester is right, it's that easy.
On a side note, if you are on Mac OS X, use '127.0.0.1' instead of 'localhost', a tip I originally got from Phil Sturgeon.