title: how to create database in codeigniter with another hostname?
body: <p>I have 2 servers, one for files and another for database.</p>
  
  <p>I'm trying to create another database but i get an error of "Access denied for user username@files_server", but the main database is on data_server.</p>
  
  <p>my code is:</p>
  
  <pre><code>// create database
  $this-&gt;load-&gt;dbforge();
  
  $this-&gt;dbforge-&gt;create_database("new_database");
  </code></pre>