mysql - MySQL 无法启动服务器
问题描述
启动 MySQL 服务器时它崩溃,有完整的日志:
2021-08-16T11:49:20.983309Z 0 [System] [MY-010116] [Server] c:\openserver\modules\database\MySQL-8.0-Win10\bin\mysqld.exe (mysqld 8.0.24) starting as process 9160
2021-08-16T11:49:21.044642Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-08-16T11:50:11.932767Z 1 [ERROR] [MY-012611] [InnoDB] Operating system error number 1117 in a file operation.
2021-08-16T11:50:11.934157Z 1 [ERROR] [MY-012646] [InnoDB] File (unknown): 'flush' returned OS error 1217. Cannot continue operation
2021-08-16T11:50:11.934525Z 1 [ERROR] [MY-012981] [InnoDB] Cannot continue operation.
在无数的谷歌页面之后,我没有找到解决方案......而且这个日志“非常”信息丰富,所以没有关于这个错误的有用信息......也根据 MSDN:
ERROR_INVALID_MESSAGENAME
1217 (0x4C1)
The format of the specified message name is invalid.
也不是很有用......我试过的:
- 删除日志文件(ib_logfile0、ib_logfile1、ib_logfile101)
- 删除 tmp 文件 (ibtmp1)
- 重新安装 MySQL 服务器
- 尝试从 1 到 6 的 innodb_force_recovery 参数的每个值
- 检查 MySQL 文件夹及其所有文件的写入和读取权限
- 运行 chkdsk /F /R,重新启动计算机并重复上述所有操作
我正在运行 Windows 10 Home 20H2
解决方案
问题出在我 7 年的旧硬盘上,换上新硬盘,现在一切正常
推荐阅读
- android - 如何在 Firebase 中使用 PhoneAuthProvider 检测短信代码是否发送到另一台设备
- javascript - Javascript 中的 cURL POST 请求
- eclipse - 在 Eclipse 中使用 Maven 生成 Skinny War 文件
- python-3.x - 在散景的回调中动态更新多条线图
- javascript - json 值不接受特殊字符
- javascript - Angular - 调整大小更改 html 元素
- java - 如何告诉 assertJsonEquals 在比较时忽略一个字段
- javascript - 正则表达式仅输入允许的模式(输入文本)
- apache-nifi - Apache NiFi JoltTransformJSON processor attribute as jolt spec
- powershell - 获取站点集合中包含 5000 个项目的列表