Configuring Drush on OS X Lion and MAMP 2.0

Today I finally decided to install Drush on my MacBook Air and everything was going great using pear to install Drush until I ran into the error: No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)    [warning]

Luckily it's an easy fix. Simply create a symbolic link in /var/mysql to /Applications/MAMP/tmp/mysql/mysql.sock with the following code.

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

And your done.



great! worked for me
thank you

Thanks for the post. This solved the issue where drush wouldn't find my site when I was running 'drush update' 'drush cc'. With 'drush cc' I was only seeing 2 options vs. 8.

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.