How to get drush to work with Zend Community Edition on a Mac

Submitted by barnettech on

http://drupal.org/node/571350#comment-4212112

My new mac and I love this list of workarounds. Thanks folks.

on my mac I did:

cd /tmp
ln -s /usr/local/zend/mysql/tmp/mysql.sock mysql.sock  (sometimes this link gets deleted and I have to recreate it -- I will try to protect it with unix permissions)

This lets you type mysql from the terminal and login to mysql that way.

Then I did:

cd /var
mkdir mysql
ln -s /usr/local/zend/mysql/tmp/mysql.sock mysql.sock

and this finally got drush working

to be thorough on documenting this to connect to the zend version of mysql you connect with this line

 /usr/local/mysql/bin/mysql -u root -p 

but you can always mess around some more to make just typing mysql from the terminal open up the zend version of mysql. I may do this if it annoys me enough.

Cheers,

James