❇︎ ,

Get wp-cli running with MAMP

Get wp-cli running with MAMP

I got really intrigued with the wp-cli tool for command line WordPress (seriously awesome, check it out)… however I haven’t switched my osx machine to use the built in php and mysql so I kept getting this error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Easy fix:

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

And BOOM! I’ve got wp-cli working now.


2 responses

  1. jon Avatar
    jon

    I know it’s years later, but this just saved me. Thank you!

    1. Darren Avatar

      Oh hey! Awesome 😃I’m glad it helped.

Leave a Reply to jonCancel reply

Discover more from Unfolding Neurons

Subscribe now to keep reading and get access to the full archive.

Continue reading