MAMPでのmysql操作の仕方

move directry
cd /Applications/MAMP/Library/bin

Access to mysql
./mysql -u root -p


However, it is an inefficient way to type "cd path". Path should be written in zshrc.
zshrc

export PATH=$PATH:/Applications/MAMP/Library/bin


ref
http://blog.mayy.me/mysql/mamp-terminal.html
http://bl6.jp/web/db/terminal-mamp-mysql-connection/