终端命令无法连接到MySQL

Lea*_*cim 2 mysql mamp

我正在使用安装了MAMP的Mac 10.6.6.

以前,我已经能够从我的命令行使用它连接到mysql

mysql --host=127.0.0.1 --port=8889 --user=root -p
Run Code Online (Sandbox Code Playgroud)

但现在它说

-bash: mysql: command not found
Run Code Online (Sandbox Code Playgroud)

你知道如何解决这个问题吗? mysql目录

neo*_*ble 6

添加到您的 ~/.bash_profile

PATH=$PATH:/usr/local/mysql/bin:/usr/local/postgre/bin
export PATH
Run Code Online (Sandbox Code Playgroud)

然后,在现有终端中: source ~/.bash_profile