title: Access denied for user 'root'@'localhost' - Laravel
body: <p>I have an application with Laravel 4, that runs in localhost correctly,
  but when I uploaded it in my host I received the error .</p>
  
  <p>app>config>database.php file is:</p>
  
  <pre><code>'mysql' =&gt; array(
          'driver'    =&gt; 'mysql',
          'host'      =&gt; '127.0.0.1',
          'database'  =&gt; 'forum',
          'username'  =&gt; 'root',
          'password'  =&gt; '',
          'charset'   =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix'    =&gt; '',
      ),
  </code></pre>
  
  <p>And bootstrap>start.php is:</p>
  
  <pre><code>$env = $app-&gt;detectEnvironment(array(
  'local' =&gt; array('homestead'),
  ));
  </code></pre>