1,下载homebrew
- 终端输入
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2,安装命令
brew install mysql
3,启动mysql
- mysql.server start(进入mysql;mysql -u root -p)
2. mysql_secure_installation
3,按照要求选择
4,停止mysql
在终端输入 mysqld stop
(mysql.server stop)
4,解决1045问题,关于密码一直输入的是下载配置时自己配置的
5,链接sequel pro
1;host. 127.0.0.1
2,参考点击打开链接
参考资料
http://blog.csdn.net/qq_28938933/article/details/72872064
http://blog.csdn.net/lkxlaz/article/details/54580735
https://www.cnblogs.com/lidyan/p/6587718.html