解决方法:打开cmd命令窗口,并且进入到mysql安装目录的bin目录下。然后输入命令: mysqld --initialize-insecure --user=mysql 转载于:https://my.oschina.net/u/3711831/blog/1786341