title: unable to connect database : Codeigniter
body: <p>I have noticed some unexpected behavior while connecting MySQL Codeigniter</p>
  
  <p>Here is scenario:</p>
  
  <p>-> I configured database library for autoload. (config/autoload.php)  </p>
  
  <pre><code>$autoload['libraries'] = array('database', 'session');
  </code></pre>
  
  <p>-> But after configuring that, I can't open anything. I mean to say, Controller or View.</p>
  
  <p>Have I done something wrong?</p>
  
  <pre><code>$active_group = 'default';
  $active_record = TRUE;
  
  $db['default']['hostname'] = 'localhost';
  $db['default']['username'] = 'root';
  $db['default']['password'] = 'password';
  $db['default']['database'] = 'myfamilyfirst';
  $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'] = FALSE;
  $db['default']['stricton'] = FALSE;
  </code></pre>
  
  <p>I tried to set <code>$db['default']['autoinit'] = TRUE;</code> to <code>$db['default']['autoinit'] = FALSE;</code> </p>
  
  <p>Now I can open the pages but unable to connect the database.</p>
  
  <p>Please help.</p>