title: Laravel SQLSTATE[HY000] [2002] Connection refused
body: <p>so I want to deploy my existing Laravel project into my digital ocean VPS
  I used <a href="https://gist.github.com/santoshachari/87bf77baeb45a65eb83b553aceb135a3" rel="noreferrer">this tutorial</a> and I uploaded my site successfully.</p>
  <p>My <code>.env</code> file is:</p>
  <pre><code>APP_ENV=local
  APP_KEY=my app key
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=http://localhost
  
  DB_CONNECTION=mysql
  DB_HOST=my ip
  DB_PORT=3306
  DB_DATABASE=form
  DB_USERNAME=root
  DB_PASSWORD=my pass
  </code></pre>
  <p>But here is the problem: I used MySQL and created and ran</p>
  <pre><code>php artisan migrate
  </code></pre>
  <p>and got these errors:</p>
  <pre><code>[Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = form and table_name = migrations)
  </code></pre>
  <p>and</p>
  <pre><code>[PDOException] SQLSTATE[HY000] [2002] Connection refused
  </code></pre>