MySQL8.0.27安裝過(guò)程中卡在Initializing?Database中并報(bào)錯(cuò)的解決
本文主要介紹了MySQL8.0.27安裝過(guò)程中卡在Initializing Database中并報(bào)錯(cuò)的解決,具有一定的參考價(jià)值,具體如下:

報(bào)錯(cuò)信息如下:
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在創(chuàng)建時(shí)不能編譯中文然后亂碼,然后讀取my.ini文件時(shí)遇到亂碼無(wú)法繼續(xù)運(yùn)行。
解決辦法:將計(jì)算機(jī)名字、組名等所有中文改成純英文(右鍵我的電腦屬性–>查看自己的計(jì)算機(jī)名和組名是否為中文–>更改計(jì)算機(jī)名和組名–>重啟計(jì)算機(jī)),卸載之前所安裝的mysql server,清理注冊(cè)表,卸載mysql服務(wù),刪除data數(shù)據(jù),重啟計(jì)算機(jī)使計(jì)算機(jī)改名生效,重裝mysql server。

如此便成功解決了。
附:清理注冊(cè)表的方法
Win+R 輸入 regedit 運(yùn)行,進(jìn)入注冊(cè)表編輯器,按下圖路徑,找到MySQL,進(jìn)而刪除MySQL注冊(cè)表信息。

到此這篇關(guān)于MySQL8.0.27安裝過(guò)程中卡在Initializing Database中并報(bào)錯(cuò)的解決的文章就介紹到這了,更多相關(guān)MySQL安裝Initializing Database內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Mysql LONGTEXT 類(lèi)型存儲(chǔ)大文件(二進(jìn)制也可以) (修改+調(diào)試+整理)
MySql2.cpp : Defines the entry point for the console application.2009-07-07
mysql now()函數(shù)調(diào)用系統(tǒng)時(shí)間不對(duì)的解決方法
mysql的now()函數(shù)與實(shí)際時(shí)間不符,本文就詳細(xì)的介紹一下mysql now()函數(shù)調(diào)用系統(tǒng)時(shí)間不對(duì)的解決方法,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2023-05-05
MySQL(community版)壓縮包安裝的超詳細(xì)教程

