title: Laravel 6.4.1 SQLSTATE[HY000] [2002] Connection refused
body: <p>I am new in Laravel development.
  I have updated Xampp to 7.3.11 on my Mac Mojave 10.14.6.
  In Laravel project when I hit php artisan migrate command I got following error.</p>
  
  <blockquote>
    <p>SQLSTATE[HY000] [2002] Connection refused (SQL: select * from
    information_schema.tables where table_schema = laravel and table_name
    = migrations and table_type = 'BASE TABLE')</p>
  </blockquote>
  
  <p>When I start Xampp service, my admin panel run on <a href="http://127.0.0.1:8080/phpmyadmin" rel="noreferrer">http://127.0.0.1:8080/phpmyadmin</a>.
  My working project in Laravel is also not connecting with database saying connection refused.
  I tried by changing <code>DB_Port</code> and <code>DB_Host</code> in .env file.
  I tried by clearing cache.</p>
  
  <p>Any Help will be appreciated.</p>
  
  <p>My <code>.env</code> file</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=laravel
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>