1.vim ~/.bash_profile; 2. export PATH=$PATH:/usr/local/mysql/bin; 3. 保存退出 4. source ~/.bash_profile;