title: Laravel 5.3 - PHP Artisan Migration
body: <p>I'm new to Laravel and just started with Laravel 5.3. While watching my tutorials and on my way to the Models video I encountered a problem with my <em>"connection"</em>. </p>
  
  <pre><code>[Illuminate\Database\QueryException]
  SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
  sword: YES) (SQL: select * from information_schema.tables where table_schem
  a = testing and table_name = migrations)
  
  [PDOException]
  SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas
  sword: YES)
  </code></pre>
  
  <p>Here's my database.php: (I tried configuring it before where the values are the same with my .env file but it still didn't work. I'm posting my current database.php file to get more insight/knowledge about configuration.)</p>
  
  <pre><code>'mysql' =&gt; [
          'driver' =&gt; 'mysql',
          'host' =&gt; env('DB_HOST', 'localhost'),
          'port' =&gt; env('DB_PORT', '3306'),
          'database' =&gt; env('DB_DATABASE', 'forge'),
          'username' =&gt; env('DB_USERNAME', 'forge'),
          'password' =&gt; env('DB_PASSWORD', ''),
          'charset' =&gt; 'utf8',
          'collation' =&gt; 'utf8_unicode_ci',
          'prefix' =&gt; '',
          'strict' =&gt; true,
          'engine' =&gt; null,
  </code></pre>
  
  <p>And here's my .env file:</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3307
  DB_DATABASE=testing
  DB_USERNAME=root
  DB_PASSWORD=password
  </code></pre>
  
  <p>I don't use homestead and running only on my local server. I'm also using xampp on Windows 7.</p>