PHP Artisan Migrate with MAMP and Unix Socket

后端 未结 5 2081
礼貌的吻别
礼貌的吻别 2021-02-01 10:27

I was developing my application originally in Laravel 4.2 but have since decided to move it to the 5.0 version so that it covers a lot more changes and strengths that 5.0 has ov

5条回答
  •  情话喂你
    2021-02-01 11:15

    though quite old question, but still can help others. so adding answer.

    there is even simple solution. add this to ur .env file

    DB_HOST=localhost;unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock
    

提交回复
热议问题