-
Mysql8.0.22安装时出现的Database initialization failed解决方法
作者: 许泽博 发布: 2021/10/18 分类: 软件 阅读: 次 查看评论
-
1、安装mysql8.016时到最后一步时,如下图,出现了小红点无法往下执行了,这是安装时出现的问题。
2、问题分析及解决办法
查看log,log的内容如下,我把log全部贴出来了,我们只看最后几行即可。
Beginning configuration step: Writing configuration fileSaving my.ini configuration file... Saved my.ini configuration file. Ended configuration step: Writing configuration fileBeginning configuration step: Updating Windows Firewall rules Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 3306" protocol=TCP localport=3306 已删除 6 规则。 确定。 Adding a Windows Firewall rule for MySQL80 on port 3306. Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow 确定。 Successfully added the Windows Firewall rule. Adding a Windows Firewall rule for MySQL80 on port 33060. Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 33060" protocol=TCP localport=33060 dir=in action=allow 确定。 Successfully added the Windows Firewall rule. Ended configuration step: Updating Windows Firewall rules Beginning configuration step: Adjusting Windows serviceAttempting to grant Network Service require filesystem permissions. Granted permissions. Updating existing serviceExisting service updated Ended configuration step: Adjusting Windows serviceBeginning 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.16... 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)'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:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.16) initializing of server in progress as process 16328 Newly created data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can safely remove it. Aborting C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.16) MySQL Community Server - GPL. Process for mysqld, with ID 16328, was run successfully and exited with code 1. Failed to start process for MySQL Server 8.0.16. Database initialization failed. Ended configuration step: Initializing database (may take a long time)
出现的问题的log,就是他了
Failed to start process for MySQL Server 8.0.16. Database initialization failed. Ended configuration step: Initializing database (may take a long time)
奥哟哟,这个问题应该是在my.ini中,于是乎我们查看log日志文件如下
凭借敏捷的判断和高超的能力,我觉得这个是乱码,mysql不识别导致初始化失败的,奥利给,于是乎,我把他改成了英文,再次使用mysql installer进行配置如下,
动动手指,就是这里,改成全英文的就ok啦
3、还是不行?
由于本人在操作过程没有截图,所以持续引用网友的内容和图片,
原创文章,转载请注明出处!标签:
评论列表: