title: CodeIgniter MultiDatabse connect error
body: <p>I see a lot of method/tutorial to connect multi database in CodeIgniter? Still far far away with me. Some one provide me to connect multi database in CI. This is my using way i was found it in a blog. pardon me, i don't recognize the blog address.</p>
  
  <pre><code>    $active_group = 'default';
      $active_record = TRUE;
      $db['default']['hostname'] = 'localhost';
      $db['default']['username'] = 'root';
      $db['default']['password'] = 'root';
      $db['default']['database'] = 'vk_global';
      $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;
  
      //add alternate database settings
      $db['wow']['hostname'] = 'localhost';
      $db['wow']['username'] = 'root';
      $db['wow']['password'] = 'root';
      $db['wow']['database'] = 'auth';
      $db['wow']['dbdriver'] = 'mysql';
      $db['wow']['dbprefix'] = '';
      $db['wow']['pconnect'] = TRUE;
      $db['wow']['db_debug'] = TRUE;
      $db['wow']['cache_on'] = FALSE;
      $db['wow']['cachedir'] = '';
      $db['wow']['char_set'] = 'utf8';
      $db['wow']['dbcollat'] = 'utf8_general_ci';
      $db['wow']['swap_pre'] = '';
      $db['wow']['autoinit'] = TRUE;
      $db['wow']['stricton'] = FALSE;
  </code></pre>
  
  <p>i was call it with this code</p>
  
  <pre><code>    $DB2 = $this-&gt;load-&gt;database('auth',true);
  </code></pre>
  
  <p>and i was insert a simple row with this code</p>
  
  <pre><code>    $this-&gt;$DB2-&gt;insert('events_grouptable',$data);
  </code></pre>
  
  <p>i got this error <strong>You have specified an invalid database connection group.</strong>
  how should i solve this error?</p>