1.打開終端,輸入: cd ~html
會進入~文件夾mysql
2.而後輸入:touch .bash_profilesql
回車執行後,bash
2.再輸入:open -e .bash_profileui
會在TextEdit中打開這個文件(若是之前沒有配置過環境變量,那麼這應該是一個空白文檔)。若是有內容,請在結束符前輸入,若是沒有內容,請直接輸入以下語句:htm
export PATH=${PATH}:/usr/local/mysql/binblog
而後,保存,退出TextEdit(必定是退出),關閉終端並退出。文檔
原連接:https://www.cnblogs.com/wangrui-techbolg/archive/2012/12/22/2829614.htmlit