How to use the MAMP Mysql command line client in a terminal
/Applications/MAMP/Library/bin/mysql -uroot -proot
如果要链接为默认的:
编辑 ~/.bash_profile
增加:
export PATH=$PATH:/Applications/MAMP/Library/bin
最后:
source ~/.bash_profile
测试下(打开MAMP):mysql -uroot -proot
参考:http://www.aschroder.com/2009/03/how-to-use-the-mamp-mysql-command-line-client-in-a-terminal/