title: In Laravel 4 - SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)
body: <p>I get this error in Laravel 4. My config/database.php file says,</p>
  
  <pre><code>'connections' =&gt; array(
  
      'mysql' =&gt; array(
          'driver'    =&gt; 'mysql',
          'host'      =&gt; '127.0.0.1',
          'database'  =&gt; 'my-site-name',
          'username'  =&gt; 'my-site-name',
          'password'  =&gt; 'my-password',
          'charset'   =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix'    =&gt; '',
      ),
  </code></pre>
  
  <p>Earlier I changed my environment to production, then now to local.</p>