title: CodeIgniter: Unable to connect to your database server using the provided settings Error Message
body: <p>I have been using CI just fine using the MySQL driver. I want to use the MySQL driver instead, but as soon as I change it (just add the ‘i’ at the end of MySQL, and added the port number) I get the following error message</p>
  
  <blockquote>
    <p>A Database Error Occurred</p>
    
    <p>Unable to connect to your database server using the provided settings.</p>
    
    <p>Filename: core/Loader.php</p>
    
    <p>Line Number: 232 </p>
  </blockquote>
  
  <p>my setting look like this:</p>
  
  <pre><code>$db['default']['hostname'] = $hostname;
  $db['default']['username'] = $username;
  $db['default']['password'] = $password;
  $db['default']['database'] = $database;
  $db['default']['dbdriver'] = 'mysqli';
  $db['default']['port']     = "3306";  
  $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; 
  
  where
  $hostname = 'localhost';
  $username = 'myusernamegoeshere';
  $password = 'mypasswordgoeshere';
  $database = 'mydatabasenamegoeshere'; 
  </code></pre>
  
  <p>I'm Using:</p>
  
  <blockquote>
    <p>CI 2.0.2 php 5.3.4 Apache/2.2.17 (Unix) mysql 5.5.13 mysql.default_port 3306</p>
  </blockquote>
  
  <p>Am I doing anything wrong?</p>
  
  <p>Thank you,</p>