mysql8.0.15安装过程中卡在Initializing Database中并报错

灰尘小白 2019-03-12 10:27:29
具体错误的日志文件如下,希望大佬帮我看看是什么问题,怎么解决。

我已经卸过之前的版本,注册表也一个个查找删除掉,服务也卸载过,也改过本地访问,也试过免安装压缩包版

也试过安装5.7版本的,但那是另外一个版本,卡在Starting server中,手动启动服务出现启动后关闭的提示。

以下是msi安装包的错误日志:



Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration file

Beginning configuration step: Updating Windows Firewall rules
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 service
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service

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.
2019-03-12T14:18:41.075943Z 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 3880
2019-03-12T14:18:41.080829Z 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-03-12T14:18:41.081528Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-03-12T14:18:41.081669Z 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 3880, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.15.
Database initialization failed.
Ended configuration step: Initializing Database
...全文
5684 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
大袤宏图 2020-06-07
  • 打赏
  • 举报
回复
首先使用power shell或者cmd的admin,运行.\mysql-installer-community-8.0.20.0.msi,我遇到的问题是我的计算机名是中文的,一直卡在initialization,将计算机的名字修改为英文后完美解决initialization fail的问题!
灰尘小白 2019-03-13
  • 打赏
  • 举报
回复
已解决,原因是my.ini在创建时不能编译中文然后乱码,然后读取my.ini文件时遇到乱码无法继续运行 解决办法: 将计算机名字、组名等所有中文改成纯英文 卸载之前所安装的mysql server,清理注册表,卸载mysql服务,删除data数据 重启计算机使计算机改名生效 重装mysql server 成功
灰尘小白 2019-03-12
  • 打赏
  • 举报
回复
日志中有个地方不知道为什么出现乱码

22,210

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧