1、安装mysql服务 2、初始化 3、启动mysql服务 4、登陆mysql 我用的是macOS, 已经安装成功了. mysql -uroot -proot 转载于:https://www.cnblogs.com/huangZ-H/p/10638271.html