Laravel 6.4.1 SQLSTATE[HY000] [2002] Connection refused

前端 未结 10 2097
隐瞒了意图╮
隐瞒了意图╮ 2021-02-15 14:32

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.

<
10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-15 15:20

    Try this conf in .env (i'm using Laravel v7.0), it's working for me :

    DB_CONNECTION=mysql
    DB_HOST=mysql
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=root
    DB_PASSWORD=root
    

提交回复
热议问题