MySQL 8.0.15安装Initializing Datab

2019-03-08  本文已影响0人  shu2man

之前安装过挺多次MySQL,装装卸卸都没什么问题,就这次搞了好久!

把Log的时候默认把电脑名称加在路径上,选择高级Log设置改为全英路径即可。

错误情况'.xxxxx?bin.index' not found

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-02-26T13:33:51.364118Z 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.
2019-02-26T13:33:51.364234Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.15) initializing of server in progress as process 7912
2019-02-26T13:33:51.373027Z 0 [ERROR] [MY-013236] [Server] Newly created data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can safely remove it.
2019-02-26T13:33:51.374077Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-02-26T13:33:51.374228Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.15) MySQL Community Server - GPL.
Process for mysqld, with ID 7912, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.15.
Database initialization failed.
image.png

还有其他的一些错误,比如说删除原来的文件(失败)的,我这边没有截图,但在遭遇这些问题的时候我还是把MySQL相关的注册表删掉了。
通过regedit打开注册表编辑器,Ctr+F可以搜索,我吧MySQL相关的全删了。
然而删除之后再次安装还是相同的问题。

歪打正着改为全英路径

mysqld: File '.xxxxx\?bin.index' not found (OS errno 2 - No such file or directory)

大概觉得是中文路径的问题,在my.ini里面也发现日志路径是中文的,但直接更改my.ini的话每次都会被覆盖掉并不起作用

忘了是在Accounts and Roles还是在哪一步,有个Advance Option的选项,勾选之后可以在接下来的步骤里自行设置日志路径,记住设为全英的就OK啦
最后放个安装成功的截图

image.png

我们遇到的问题也许不一样,有其他解决方式欢迎留言

上一篇下一篇

猜你喜欢

热点阅读