1. 安装完mysql 完,切换到mysql/bin目录下
2. 管理员权限打开cmd
3. 执行
mysqld --initialize-insecure
4. 提示安装完成。
5. 打开服务,启动mysql 服务。
6. 重启。