mysql8.0.15安裝過程中卡在Initializing Database中並報錯


報錯信息如下:

Beginning configuration step: Initializing Database
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 8.0.15...
Starting process with command: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --initialize-insecure=on --lower-case-table-names=1...
mysqld: File '.\鐏扮伆鐨勭數鑴?bin.index' not found (OS errno 2 - No such file or directory)
2019-03-12T14:18:41.075877Z 0 [Warning] [MY-010915] [Server] '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.

方案:

原因是my.ini在創建時不能編譯中文然后亂碼,然后讀取my.ini文件時遇到亂碼無法繼續運行

解決辦法:
將計算機名字、組名等所有中文改成純英文
卸載之前所安裝的mysql server,清理注冊表,卸載mysql服務,刪除data數據
重啟計算機使計算機改名生效
重裝mysql server
成功

 

 

 

 

 

 

 

.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM