title: Laravel 5 error SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)
body: <p>I have installed Laravel 5 successfully and changed MySQL credentials in database.php file in config directory to
      '</p>
  
  <pre><code>mysql' =&gt; [
              'driver'    =&gt; 'mysql',
              'host'      =&gt; env('DB_HOST', 'localhost'),
              'database'  =&gt; env('DB_DATABASE', 'wdcollect'),
              'username'  =&gt; env('DB_USERNAME', 'root'),
              'password'  =&gt; env('DB_PASSWORD', ''),
              'charset'   =&gt; 'utf8',
              'collation' =&gt; 'utf8_unicode_ci',
              'prefix'    =&gt; '',
              'strict'    =&gt; false,
          ],
  </code></pre>
  
  <p>I don't want to use homestead and I have changed .env file to</p>
  
  <pre><code>APP_ENV=local
  APP_DEBUG=true
  APP_KEY=apLIzEMOgtc5BUxdT9WRLSvAoIIWO87N
  
  DB_HOST=localhost
  DB_DATABASE=wdcollect
  DB_USERNAME=root
  DB_PASSWORD=
  
  CACHE_DRIVER=file
  SESSION_DRIVER=file
  QUEUE_DRIVER=sync
  
  MAIL_DRIVER=smtp
  MAIL_HOST=mailtrap.io
  MAIL_PORT=2525
  MAIL_USERNAME=null
  MAIL_PASSWORD=null
  </code></pre>
  
  <p>I don't understand that why it's saying that access denied for 'homestead'@'localhost'</p>