配置MySQL时报错,整不明白

Beginning configuration step: Writing configuration fileSaving my.ini configuration file...Saved my.ini configuration file.Ended configuration step: Writing configuration fileBeginning configuration step: Adjusting Windows serviceAttempting to grant Network Service require filesystem permissions.Granted permissions.Adding new serviceNew service addedEnded configuration step: Adjusting Windows serviceBeginning configuration step: Initializing database (may take a long time)Attempting to run MySQL Server with --initialize-insecure option...Starting process for MySQL Server 8.0.30...Starting process with command: D:\mysql8.0\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --initialize-insecure=on --lower-case-table-names=1...'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.D:\mysql8.0\bin\mysqld.exe (mysqld 8.0.30) initializing of server in progress as process 10432mysqld: File '.\鏈卞ぇ甯呬竴鍙?bin.index' not found (OS errno 2 - No such file or directory)The designated data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can remove all files that the server added to it.AbortingD:\mysql8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.30) MySQL Community Server - GPL.Process for mysqld, with ID 10432, was run successfully and exited with code 1.Failed to start process for MySQL Server 8.0.30.Database initialization failed.Ended configuration step: Initializing database (may take a long time)

看这个报错信息是初始化时报错,找不到对应的目录。

mysqld: File '.\鏈卞ぇ甯呬竴鍙?bin.index' not found (OS errno 2 - No such file or directory)The designated data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable.

建议你查看配置my.ini配置文件中是否有中文路径,如果有,请修改为英文路径,并且路径是存在的。
我之前写过一篇文章,非常详细,你可以参考下,

您好:

img


报错信息提示比较明确了,目录找不到,同意按楼上的的做法,一般安装不要带中文,中文目录很不友好,特别容易出一些奇奇怪怪的异常。

应该是目录找不到,建议安装不要带中文目录,中文目录不太友好