MySQL8.0.27安装过程中卡在Initializing Database中并报错的解决

本文主要介绍了mysql8.0.27安装过程中卡在initializing database中并报错的解决,具有一定的参考价值,具体如下:

报错信息如下:

beginning 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.27…
starting process with command: c:\software\mysql\mysql server 8.0\bin\mysqld.exe –defaults-file=“c:\software\mysql\data\mysql server 8.0\my.ini” –console –initialize-insecure=on –lower-case-table-names=1…
mysqld: file ‘.\瀛欎笉鍧?208-bin.index’ not found (os errno 2 – no such file or directory)
‘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.
c:\software\mysql\mysql server 8.0\bin\mysqld.exe (mysqld 8.0.27) initializing of server in progress as process 11132
the newly created data directory c:\software\mysql\data\mysql server 8.0\data\ by –initialize is unusable. you can remove it.
aborting
c:\software\mysql\mysql server 8.0\bin\mysqld.exe: shutdown complete (mysqld 8.0.27) mysql community server – gpl.
process for mysqld, with id 11132, was run successfully and exited with code 1.
failed to start process for mysql server 8.0.27.
database initialization failed.
ended configuration step: initializing database (may take a long time)

解决方案:

原因:my.ini在创建时不能编译中文然后乱码,然后读取my.ini文件时遇到乱码无法继续运行。

解决办法:将计算机名字、组名等所有中文改成纯英文(右键我的电脑属性–>查看自己的计算机名和组名是否为中文–>更改计算机名和组名–>重启计算机),卸载之前所安装的mysql server,清理注册表,卸载mysql服务,删除data数据,重启计算机使计算机改名生效,重装mysql server。

如此便成功解决了。

附:清理注册表的方法

win+r 输入 regedit 运行,进入注册表编辑器,按下图路径,找到mysql,进而删除mysql注册表信息。

到此这篇关于mysql8.0.27安装过程中卡在initializing database中并报错的解决的文章就介绍到这了,更多相关mysql安装initializing database内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

(0)
上一篇 2022年7月1日
下一篇 2022年7月1日

相关推荐