### 2. 安装 mysql 和navicat
#安装
1. brew install mysql@5.7
#如果出现 updating homebrew并且一直无法通过可以按 ctrl+c然后就会继续安装了
2. brew link --force mysql@5.7
#启动
2. brew services start mysql@5.7
#进入 mysql
3. mysql -u root -p
初次进入的时候会让你输入密码,这时候直接回车进入
#进入mysql后, 分别运行下面三行代码!
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Admin123' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'Admin123' WITH GRANT OPTION;
flush privileges;