MySQL from MAMP can’t run from terminal. You need to add mysql bin path in $PATH. From terminal you can do with export PATH like following
$ export PATH=/Applications/MAMP/Library/bin/:/opt/local/bin:/opt/local/sbin:$PATH
but it’s only for 1 time. You close the terminal and open again. It will lost. For permanently, you need to add in profile file.
How to
open terminal
$cd ~
$open -a TextEdit .profile