Microsoft Windows [版本 10.0.16299.847]
(c) 2017 Microsoft Corporation。保留所有权利。
C:\Windows\system32>mysqld --install console
Service successfully installed.
C:\Windows\system32>mysqld --initialize --console
2020-05-12T11:43:30.434174Z 0 [System] [MY-013169] [Server] E:\Program Files\mysql-8.0.13-winx64\bin\mysqld.exe (mysqld 8.0.13) initializing of server in progress as process 13960
2020-05-12T11:43:47.037051Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: PBycMV=kI96e
2020-05-12T11:43:56.874712Z 0 [System] [MY-013170] [Server] E:\Program Files\mysql-8.0.13-winx64\bin\mysqld.exe (mysqld 8.0.13) initializing of server has completed
C:\Windows\system32>net start mysql
发生系统错误 1058。
无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。
C:\Windows\system32>mysqld --install co
Service successfully installed.
C:\Windows\system32>mysql --install
mysql: [ERROR] unknown option '--install'.
C:\Windows\system32>mysqld --instal
记一次mysql 8 在windows的安装记录
最新推荐文章于 2023-02-23 13:18:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)