mac下输入mysql提示command not found: mysql

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

你可能感兴趣的:(mac下输入mysql提示command not found: mysql)