title: Selecting Database within codeigniter - can not select database now
body: <p>I tried to rename my database (I am using hostmonster) and now nothing is loading on my page.  I can't seem to find any documentation anywhere on this.  I renamed the database back to what it originally was and I still getting the same error and nothing is loading on my page now.  I am using codeigniter (as the title would suggest). The following error is:</p>
  
  <pre><code>A Database Error Occurred
  
  Unable to select the specified database: xxxxx
  
  Filename: core/Loader.php
  
  Line Number: 346
  </code></pre>
  
  <p>I go to this file and there is nothing of relevance there:</p>
  
  <pre><code>// Load the DB class
  $CI-&gt;db =&amp; DB($params, $active_record);
  </code></pre>
  
  <p>Do I have to completely re-install my files to the server now?  Here is what database.php looks like...</p>
  
  <pre><code>$active_group = 'main';
  $active_record = TRUE;
  
  $db['main']['hostname'] = 'localhost';
  $db['main']['username'] = 'xxxx';
  $db['main']['password'] = 'xxxx';
  $db['main']['database'] = 'xxxx';
  $db['main']['dbdriver'] = 'mysql';
  $db['main']['dbprefix'] = '';
  $db['main']['pconnect'] = TRUE;
  $db['main']['db_debug'] = TRUE;
  $db['main']['cache_on'] = FALSE;
  $db['main']['cachedir'] = '';
  $db['main']['char_set'] = 'utf8';
  $db['main']['dbcollat'] = 'utf8_general_ci';
  $db['main']['swap_pre'] = '';
  $db['main']['autoinit'] = TRUE;
  $db['main']['stricton'] = FALSE;
  </code></pre>
  
  <p>Obviously, I don't really use the (xxxx)'s...</p>