I use Windows XP and use EasyPHP as a server. I integrated Codeigniter with TankAuth. But when I try to open the destination folder, it shows an error as follows:
Unable to select the specified database: project Filename: C:\Program Files\EasyPHP-12.1\www\assignment\system\database\DB_driver.php Line Number: 140
The code inside my .php database is as follows:
$active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = 'localhost'; $db['default']['username'] = 'root'; $db['default']['password'] = 'root123'; $db['default']['database'] = 'project'; $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;
I checked my database.php file, inside it I have the database name as "project".
I tried with the host name as "localhost" and "127.0.0.1", but no one worked.
I set my default controller to "auth", i.e. The default controller is TankAuth.
And initialized the library "database" in the construction in the controller "auth".
Now I have tried the same using Wamp Server. But, got the same result.
Somewhere I read that I should try to do $db['default']['pconnect'] and
$db['default']['db_debug'] before FALSE . But that did not work.
And all access permissions were granted to the database project.
Is there anything I should try to get it to work?
Thanks in advance...
V15HM4Y
source share