//添加path路径
export PATH=$PATH:/usr/local/mysql/bin/
#vi ~/.bash_profile
PATH=/usr/local/mysql/bin:$PATH:$HOME/bin

 

方法有大概三种,这只是我最常用的一种!