1.下载地址
mysql解压版下载地址
2.解压后的文件更名为mysql,放置在指定纯英文路径文件夹,本文放置在d:/develop文件夹下
3.以管理员身份运行CMD,执行代码如下:
3.1初始化
D:\develop\mysql\bin>mysqld --initialize --user=mysql --console
得到结果
2019-04-01T05:30:44.243021Z 0 [System] [MY-013169] [Server] D:\develop\mysql\bin\mysqld.exe (mysqld 8.0.15) initializing of server in progress as process 7256
2019-04-01T05:31:07.351423Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 1Rl4ffRnt,R=
2019-04-01T05:31:15.690623Z 0 [System] [MY-013170] [Server] D:\develop\mysql\bin\mysqld.exe (mysqld 8.0.15) initializing of server has completed
保存临时密码:1Rl4ffRnt,R=
3.2安装
D:\develop\mysql\bin>mysqld --install MySQL
得到结果
Service successfully installed.
3.3启动服务
D:\devel