So i am new to codeigniter, what i want to accomplish is to create a new database using the dbforge class by providing the parameters such as the name of the database, password and the username of this new created database. so far i have been able to create the database, but i want the username and password to be specified for this database too. How do i accomplish this.
so far i have this function
public function dbcreate($db, $user, $pwd)
{
$this->dbforge->create_database($db);
}
how do i go about incorporating the $user and $password within the newly created database.