使用管理员权限打开cmd命令行 1 生成data文件夹 mysqld --initialize-insecure --user=mysql 2 安装服务 mysqld -install 3 启动服务 net start mysql 4 启动mysql 密码为空 mysql -u root -p