title: Can not connect database
body: <p>There are 2-3 same questions on this site but none of them gave me the right answer so i am asking it again. </p>
  
  <p>I have just installed codeigniter yesterday and was watching some tutorial. But when i tried to access database i started to get the following error</p>
  
  <pre><code>        Unable to connect to your database server using the provided settings.
  
             Filename: C:\wamp\www\test\system\database\DB_driver.php
  
                Line Number: 124
  </code></pre>
  
  <p>I changed nothing  in the settings. Just installed wamp server and then created a database named asik and then created a table name bcc. Here is the database.php file:</p>
  
  <pre><code>     $db['default']['hostname'] = 'localhost';
       $db['default']['username'] = 'root';
       $db['default']['password'] = 'root';
       $db['default']['database'] = 'asik';
       $db['default']['dbdriver'] = 'mysqli';
       $db['default']['dbprefix'] = '';
       $db['default']['pconnect'] = FALSE;
       $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 also auto loaded the database.)</p>
  
  <p>This is what I did before getting the error. I have tried all day and could not find any way to solve it. Please advise.</p>