macOS Catalina配置MySQL

  1. MySQL官网下载MySQL Community并安装
  2. 打开终端,输入
vi ~/.zshrc
  1. 敲下回车,输入
export PATH=${PATH}:/usr/local/mysql/bin/
:wq
source ~/.zshrc
  1. 重新启动终端,输入mysql -u root -p和密码后即可登陆MySQL

参考:https://stackoverflow.com/questions/35858052/zsh-command-not-found-mysql

你可能感兴趣的:(macOS Catalina配置MySQL)