將mysql路徑加入環境變數的方法,mysql路徑環境變數

來源:互聯網
上載者:User

將mysql路徑加入環境變數的方法,mysql路徑環境變數

1.開啟終端,輸入: cd ~

會進入~檔案夾

2.然後輸入:touch .bash_profile

斷行符號執行後,

2.再輸入:open -e .bash_profile

會在TextEdit中開啟這個檔案(如果以前沒有配置過環境變數,那麼這應該是一個空白文檔)。如果有內容,請在結束符前輸入,如果沒有內容,請直接輸入如下語句:

export PATH=${PATH}:/usr/local/mysql/bin

然後,儲存,退出TextEdit(一定是退出),關閉終端並退出。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.