Selecting Database within codeigniter - can not select database now
In your control panel , go to MySQL Databases
I assumed you have already created a user , Now what you are missing out ... is that you did not add the user to the database
after adding , confirm the necessary permission , then you are good to go!
Set $db['default']['pconnect'] = FALSE;
. Here mysql_pconnect() is disabled, So we are using mysql_connect().
open application->config->database.php
and set the configuration variable
$db['default']['database'] = 'new name';