Ma用brew安装mysql5.7

£可爱£侵袭症+ 提交于 2020-04-09 17:59:18

安装

brew install mysql@5.7  // 安装
brew link --force mysql@5.7 // 链接
brew services start mysql@5.7 // 启动服务

brew services stop mysql@5.7
brew services restart mysql@5.7

设置密码

启动之后,输入一行
mysql_secure_installation

5.7.x对密码有了更严格的要求,分为LOW,MEDIUM,STRONG三个等级,对应要求如下:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file


选low即可,要输入8位,我这里使用12345678 ,其他一路y。

启动

➜  ~ brew services start mysql@5.7
==> Successfully started `mysql@5.7` (label: homebrew.mxcl.mysql@5.7)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!