【问题标题】:MySQL can not start the serverMySQL 无法启动服务器
【发布时间】:2021-10-18 12:00:33
【问题描述】:

启动 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.

也不是很有用... 我尝试了什么:

  1. 删除日志文件(ib_logfile0、ib_logfile1、ib_logfile101)
  2. 删除 tmp 文件 (ibtmp1)
  3. 重新安装 MySQL 服务器
  4. 尝试从 1 到 6 的 innodb_force_recovery 参数的每个值
  5. 检查 MySQL 文件夹及其所有文件的读写权限
  6. 运行 chkdsk /F /R,重新启动计算机并重复上述所有操作

我正在运行 Windows 10 Home 20H2

【问题讨论】:

标签: mysql windows startup oserror


【解决方案1】:

问题出在我 7 年的旧硬盘上,换上新硬盘,现在一切正常

【讨论】:

  • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 2013-12-08
  • 2021-10-24
  • 1970-01-01
  • 2017-06-18
  • 2021-03-11
  • 2014-12-24
  • 1970-01-01
  • 1970-01-01
  • 2015-01-21
相关资源
最近更新 更多