andreascreten/wp-cli — Issue #66: MAMP Support?
Author: ericandrewlewis
Created: 2012-02-07 22:02:35+00:00
State: open

I tried this out in a MAMP environment and received a #2002 MySQL error.

Traced it to the fact the MAMP php.ini was not being loaded, therefore the ini setting for mysql.default_socket is set to "/var/mysql/mysql.sock", not "/Applications/MAMP/tmp/mysql/mysql.sock".

Thoughts on support for MAMP? Not sure how MAMP detection might work, we'd have to also detect which version of MAMP the user is running and load the appropriate php.ini file.