MAMP with Laravel Unix Socket

后端 未结 5 1777
南方客
南方客 2021-02-04 14:47

I\'m working with MAMP on my local development server on my laravel application and I\'m trying to figure out how I can safely setup my server so I don\'t have to use the follow

5条回答
  •  你的背包
    2021-02-04 15:38

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

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

提交回复
热议问题