When running drush you can run into this error message. In my case, the mysql command line tool provided with Mamp Pro was not available. You can easily test this by typing the command ‘mysql’ in terminal. Your output might be
-bash: mysql: command not found.
To solve this, do the following in terminal:
sudo vim ~/.bash_profile
Move to the last line and append
:wq (including the colon) to write the file and quit vim.
Reload your profile by running
The mysql command AND drush should now work!