title: Codeigniter : Showing error as ' Unable to select the specified database: project' in Windows XP
body: <p>I am using Windows XP and using EasyPHP as a server. I have integrated Codeigniter with TankAuth. But, when I try to open my assignment folder, it shows error as follows:</p>
  
  <pre><code>Unable to select the specified database: project
  
  Filename: C:\Program Files\EasyPHP-12.1\www\assignment\system\database\DB_driver.php
  
  Line Number: 140
  </code></pre>
  
  <p>The code inside my database .php is as follows"</p>
  
  <pre><code>$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;
  </code></pre>
  
  <p>I have checked my database.php, inside it I have database name as 'project'. </p>
  
  <p>I have tried with hostname both as 'localhost' and as '127.0.0.1', but none worked. </p>
  
  <p>I have set my default controller to 'auth' i.e. default controller of TankAuth. </p>
  
  <p>And have initialized 'database' library in the construct in 'auth' controller. </p>
  
  <p>Just now I have tried the same thing using Wamp Server. But, got the same result.</p>
  
  <p>Somewhere I read that I should try making <code>$db['default']['pconnect']</code> and </p>
  
  <p><code>$db['default']['db_debug']</code> to <code>FALSE</code>. But it didn't work.</p>
  
  <p>And all the access permissions have been granted to database 'project'.</p>
  
  <p>Is there anything that I should try to make it work?</p>
  
  <p>Thanks in advance...</p>