常用的以管理员身份启动试过也不行,环境变量里面路径也查看过没有问题,斜杠一道两道都试了还是不行,数据库里ini文件也重做过几次,还是显示不对,下面是提示内容,请老师帮忙解答!
Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Windows\System32>mysqld install
Install/Remove of the Service Denied!
C:\Windows\System32>net start mysql
发生系统错误 5。
拒绝访问。
C:\Windows\System32>
打开cmd.exe程序的时候选择“用管理员身份打开”。
cmd.exe路径:C:\Windows\System32\cmd.exe
Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Windows\System32>mysqld --initialize-insecure --user=mysql
C:\Windows\System32>d:
D:\>cd D:\mysql-8.0.23-winx64\bin
D:\mysql-8.0.23-winx64\bin>mysqld --initialize --console
2021-03-12T11:18:40.149778Z 0 [System] [MY-013169] [Server] D:\mysql-8.0.23-winx
64\bin\mysqld.exe (mysqld 8.0.23) initializing of server in progress as process
5180
2021-03-12T11:18:40.152776Z 0 [ERROR] [MY-010457] [Server] --initialize specifie
d but the data directory has files in it. Aborting.
2021-03-12T11:18:40.152777Z 0 [ERROR] [MY-013236] [Server] The designated data d
irectory D:\mysql-8.0.23-winx64\data\ is unusable. You can remove all files that
the server added to it.
2021-03-12T11:18:40.157776Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-03-12T11:18:40.157778Z 0 [System] [MY-010910] [Server] D:\mysql-8.0.23-winx
64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.23) MySQL Community Server - G
PL.
D:\mysql-8.0.23-winx64\bin>mysqld -install
Install/Remove of the Service Denied!
D:\mysql-8.0.23-winx64\bin>net start mysql
'net' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\mysql-8.0.23-winx64\bin>
卸载重装最快,不过要将残留文件删干净