解决:
首先:1.打开终端 输入 open .bash_profile
2.追加 export PATH=${PATH}:/usr/local/mysql/bin
mysql=/usr/local/mysql/bin/mysql
mysqladmin=/usr/local/mysql/bin/mysqladmin
3.保存并退出
打开终端: 输入source .bash_profile
mysql -u xxx -p xxx
成功!
解决:
首先:1.打开终端 输入 open .bash_profile
2.追加 export PATH=${PATH}:/usr/local/mysql/bin
mysql=/usr/local/mysql/bin/mysql
mysqladmin=/usr/local/mysql/bin/mysqladmin
3.保存并退出
打开终端: 输入source .bash_profile
mysql -u xxx -p xxx
成功!