I am using Drush and Mamp for quite some time now on my mac.
Drush was installed with homebrew and was recently updated to the 4.5 version.
I upgraded my Mamp Pro to version 2.0 and started having issues with my Drush commands.
I started looking into it and discovered some changes to Mamp which led to drush not being able to do anything.
I will go trough the process I did to make things work again.
1. PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)
This was fixed by implementing the changes proposed in a comment in the issue queue for drush
mamp changed the directories so to fix this asap i added
/Applications/MAMP/bin/php/php5.2.17/bin/php
/Applications/MAMP/bin/php/php5.3.6/bin/php
to drush/drush
The error went away but I now had issues with my memory limits, which was strange, as my memory limits in all php.ini-files were set high enough.
After some digging in Drush i found some information in the Readme-file that was worth trying to fix my issue.
As the memory limits were set high enough, but Drush wasn’t taking those limits in account, i tried the following:
Alternately, if you only want to override a few values, copy example.drush.ini from the “examples” folder into $HOME/.drush or the folder /etc/drush and edit to suit. See comments in example.drush.ini for more details.
I set the memory_limit in the newly created drush.ini in my drush-folder, and all was working again.
Dag Ruben
Ik kwam vandaag exact hetzelfde probleem tegen en dit was de oplossing.
Thx!