title: PDOException SQLSTATE HY000 1698 Access denied for user 'rootlocalhost' Homestead
body: <p>I was able to successfully create migrations from Xampp. However when i installed Homestead(vagrant,Virtual Box) and try to associate it with a database and run migrations i am facing</p>
  
  <pre><code>##[PDOException] SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'##
  </code></pre>
  
  <p>I have literally tried many configurations for .env file and config/database file , none seems to be working.
  .ENV File</p>
  
  <pre><code>APP_ENV=local
  APP_KEY=base64:AxtpwFxTGQ3tkumIu1nkzswrTbuI37BigLGn3meRC6M=
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=http://localhost
  
  DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=lara56
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>
  
  <p>My config/database file</p>
  
  <pre><code>'connections' =&gt; [
  
          'sqlite' =&gt; [
              'driver' =&gt; 'sqlite',
              'database' =&gt; env('DB_DATABASE', database_path('database.sqlite')),
              'prefix' =&gt; '',
          ],
  
          'mysql' =&gt; [
              'driver' =&gt; 'mysql',
              'host' =&gt; env('DB_HOST', '127.0.0.1'),
              'port' =&gt; env('DB_PORT', '3306'),
              'database' =&gt; env('DB_DATABASE', 'lara56'),
              'username' =&gt; env('DB_USERNAME', 'root'),
              'password' =&gt; env('DB_PASSWORD', ''),
              'charset' =&gt; 'utf8',
              'collation' =&gt; 'utf8_unicode_ci',
              'prefix' =&gt; '',
              'strict' =&gt; true,
              'engine' =&gt; null,
          ],
  </code></pre>