title: XAMPP codeigniter Database Error
body: <p>I face an error when trying the tutorial of CodeIgniter. When I try the "News section". I get the error </p>
  
  <p>A Database Error Occurred</p>
  
  <p>Unable to connect to your database server using the provided settings.</p>
  
  <p>Filename: C:\xampp\htdocs\CI\system\database\DB_driver.php</p>
  
  <p>Line Number: 124</p>
  
  <p>I am using XAMPP and my os is windows7(64 bit).</p>
  
  <p>My details in the C:\xampp\htdocs\CI\application\config\database.php are follows</p>
  
  <pre><code>$db['default']['hostname'] = 'localhost';
  $db['default']['username'] = 'root';
  $db['default']['password'] = '';
  $db['default']['database'] = 'xxx';
  $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 succeeded When to establish the connection to db with core php. </p>
  
  <p>Somebody help me to resolve this..
  Thanks in advance..</p>