How to connect a Laravel app to MySQL using MAMP?

后端 未结 1 641
小蘑菇
小蘑菇 2020-12-30 14:50

SOLVED: I followed what this website said http://forums.laravel.io/viewtopic.php?id=980 I just added \'unix_socket\' to the mysql array and it worked!

I am followin

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 15:21

    MAMPs MySQL is running on port 8889, so add 'port' => '8889' to your config array

    0 讨论(0)
提交回复
热议问题