終端配置 PATH
cd ~
如果沒有 .bash_profile 文件食绿,則創(chuàng)建
touch .bash_profile
編輯該文件 .bash_profile
export PATH=${PATH}:/usr/local/mysql/bin/
保存增加的內(nèi)容之后锨苏,需要讓 .bash_profile 文件生效
source ~/.bash_profile
然后運行
mysql -u root -p
即可進入 mysql 模式。