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服務,刪除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:Unsafe statement written to the binary log using state
這篇文章主要介紹了MySQL:Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEM,需要的朋友可以參考下2016-05-05MySQL報錯1067 :Invalid default value for&n
在使用MySQL5.7時,還原數(shù)據(jù)庫的時候報錯,下面就來介紹一下MySQL報錯1067 :Invalid default value for ‘字段名’,具有一定的參考價值,感興趣的可以了解一下2024-05-05Mysql實現(xiàn)全文檢索、關(guān)鍵詞跑分的方法實例
這篇文章主要給大家介紹了關(guān)于Mysql實現(xiàn)全文檢索、關(guān)鍵詞跑分的相關(guān)資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2020-09-09一句命令完成MySQL的數(shù)據(jù)遷移(輕量級數(shù)據(jù))
有時候我們需要將數(shù)據(jù)庫遷移的本地,對于數(shù)據(jù)量不大的數(shù)據(jù)完全可以采用下面的命令實現(xiàn),如果數(shù)據(jù)量比較大,建議使用專業(yè)的工具,例如帝國備份王等2013-08-08