0

I switched my local install over to php 7 and when I tried to navigate to my ee install it threw a mysqli_connection.php error, that said this:

SQLSTATE[HY000] [2002] No such file or directory

It seems MAMP doesn't create the correct file for php 7 to work correctly.

1 Answer 1

2

Looking it up I found this solution that worked for me:

sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock

I thought I'd post this in case anyone else runs into this error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.