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


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire