sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin/mysql // on error change /usr/bin/mysql to /usr/local/bin/mysql