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

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

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

