After a topic to solve error on windows with EasyPHP, I have another trick for users that use Mac and MAMP.
This is so easy: the problem is that CLI search the default location of mysql, but MAMP install everything in its folder.
The solution is to prompt those command on terminal:
>> sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin/mysql
>> sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock
It will create an alias to the MAMP installations.
Enjoy your OIL! Hope it will be useful!