Upload Local Laravel Project to Server
<p>I've created a Laravel 5.3 project on my local apache server(XAMPP) and it works fine with login and registration.</p>

<p>However, when I upload(via FTP) to my server(the server is 000webhosting) and try to do login it returns an error saying:</p>

<pre><code>PDOException in Connector.php line 119:
SQLSTATE[HY000] [2002] Connection refused
</code></pre>

<p>I've already changed the .env to match the server DB's info, and just in case I also changed the <code>config/database.php</code> to also match. But it still appears like that?</p>

<p>Do you know exactly everything I have to change in my project so it can work on the server?</p>