1、#vi .bash_profile
在PATH……後加上mysql啓動目錄如:
PATH=$PATH:$HOME/bin:/usr/local/mysql/bin/
2、#wq! 保存退出
3、logout 註銷
4、重新登陸
5、OK