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.
<
I had this issue, I use MAMP for MYSQL server.
It was a configuration issue that I solved by changing the port to the correct one I found in MAMP instructions, which is 8889
.
So the correct configuration in my .env
file is:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8889
DB_DATABASE=dbname
DB_USERNAME=root
DB_PASSWORD=rootpassword