title: Laravel User Access issue in Creating Database
body: <p>I would need my Laravel app to create a database which is defined by the user. Here are my settings and codes:</p>
  
  <pre><code>'mysql_only_connect'  =&gt; [
              'driver'    =&gt; 'mysql',
              'host'      =&gt; env('DB_HOST', '127.0.0.1'),
              'port'      =&gt; env('DB_PORT', '3306'),
              'database'  =&gt; null,
              'username'  =&gt; env('DB_USERNAME', 'root'),
              'password'  =&gt; env('DB_PASSWORD', '')            
          ],
  </code></pre>
  
  <hr>
  
  <pre><code>DB::connection('mysql_only_connect')-&gt;statement("CREATE DATABASE db_name DEFAULT CHARACTER SET utf8;");
  </code></pre>
  
  <p>And I'm having a user access denied issue when creating a database but I've been using the same DB user in accessing other databases. I highly suspect it has something to do with the user but I'm not sure how to correctly set a user access account for this scenario.</p>
  
  <p>Notes:</p>
  
  <ol>
  <li>I have no issue running locally but on the server.</li>
  <li>I have no issue when simply creating tables under a database already created via WHM/cPanel.</li>
  </ol>
  
  <p>I would appreciate any help and suggestions.</p>