安装brew(已有省略词步) /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 执行输入1 安装完成执行brew检测是否安装成功
安装mysql
1、执行安装命令
brew install mysql
2、安装完后启动mysql
mysql.server start
3、执行安全设置
mysql_secure_installation
显示如下
There are three levels of password validation policy: LOW Length >= 8 MEDIUM Length >= 8, numeric, mixed case, and special characters STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
按照提示选择密码等级,并设置root密码
http://blog.itpub.net/30936525/viewspace-2016528/ //友情链接有详细密码设置步骤详解
参考链接
https://blog.csdn.net/yuanshangshenghuo/article/details/106599836 //安装brew
https://www.jianshu.com/p/4fc53d7d7620 // 安装mysql
http://blog.itpub.net/30936525/viewspace-2016528/ //友情链接有详细密码设置步骤详解