shinena_deng 2020-09-07 11:34 采纳率: 33.3%
浏览 733
已结题

在window server2008 上启动mysql报错:InnoDB: Header page consists of zero bytes in datafile :ibdata1

2020-09-07T11:19:32.951500+08:00 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2020-09-07T11:19:32.951500+08:00 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2020-09-07T11:19:32.951500+08:00 0 [Note] MySQL (mysqld 5.7.31-log) starting as process 5924 ...
2020-09-07T11:19:32.967125+08:00 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-09-07T11:19:32.967125+08:00 0 [Note] InnoDB: Uses event mutexes
2020-09-07T11:19:32.967125+08:00 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2020-09-07T11:19:32.967125+08:00 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-09-07T11:19:32.967125+08:00 0 [Note] InnoDB: Number of pools: 1
2020-09-07T11:19:32.967125+08:00 0 [Note] InnoDB: Not using CPU crc32 instructions
2020-09-07T11:19:32.982750+08:00 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2020-09-07T11:19:33.014000+08:00 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-07T11:19:33.029625+08:00 0 [ERROR] InnoDB: Header page consists of zero bytes in datafile:xxx\data\ibdata1, Space ID:0, Flags: 0. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2020-09-07T11:19:33.029625+08:00 0 [ERROR] InnoDB: Corrupted page [page id: space=0, page number=0] of datafile 'xxx\data\ibdata1' could not be found in the doublewrite buffer.
2020-09-07T11:19:33.029625+08:00 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
2020-09-07T11:19:33.357750+08:00 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-09-07T11:19:33.357750+08:00 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-09-07T11:19:33.357750+08:00 0 [ERROR] Failed to initialize builtin plugins.
2020-09-07T11:19:33.357750+08:00 0 [ERROR] Aborting

2020-09-07T11:19:33.357750+08:00 0 [Note] Binlog end
2020-09-07T11:19:33.357750+08:00 0 [Note] Shutting down plugin 'CSV'
2020-09-07T11:19:33.373375+08:00 0 [Note] MySQL: Shutdown complete

已经试过删掉ibdata1,重新初始化数据库、再重新启动,依然还是报同样的错误,请问有遇到同样问题的吗?

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-09-07 13:16
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月12日
  • 已采纳回答 1月12日

悬赏问题

  • ¥20 西南科技大学数字信号处理
  • ¥15 有两个非常“自以为是”烦人的问题急期待大家解决!
  • ¥30 STM32 INMP441无法读取数据
  • ¥15 R语言绘制密度图,一个密度曲线内fill不同颜色如何实现
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥15 pyqt信号槽连接写法
  • ¥500 把面具戴到人脸上,请大家贡献智慧,别用大模型回答,大模型的答案没啥用
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。