问题 配置好 mysql 后每次关闭重新打开终端的时候,都需要重新执行命令:source ~/.bash_profile 解决办法 在~/.zshrc文件最后增加一行:source ~/.bash_profile