lundi 7 juin 2021

How to connect to MySQL on a different port

I ran php artisan serve artisan command on a Laravel app, it runs on port 8000. However, I get a MySQL error when hitting a table: No connection could be made because the target machine actively refused it.

My .env

DB_HOST=locahost
DB_PORT=3306


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3csGM1Y
via IFTTT

Aucun commentaire:

Enregistrer un commentaire