免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2269 | 回复: 5
打印 上一主题 下一主题

求助 恢复mysql 启动不了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-10-15 14:33 |只看该作者 |倒序浏览
数据库硬盘坏了 把data文件夹 拷了出来,把新搭的数据库 下面的data文件 替换了下 mysql就启动不了
看了下err 文档 实在看不懂 求大神帮帮忙 主要数据十分重要 谢谢了





161015 14:32:44 [Note] Plugin 'FEDERATED' is disabled.
161015 14:32:44 InnoDB: The InnoDB memory heap is disabled
161015 14:32:44 InnoDB: Mutexes and rw_locks use Windows interlocked functions
161015 14:32:44 InnoDB: Compressed tables use zlib 1.2.3
161015 14:32:44 InnoDB: Initializing buffer pool, size = 1.0G
161015 14:32:44 InnoDB: Completed initialization of buffer pool
161015 14:32:44 InnoDB: highest supported file format is Barracuda.
InnoDB: ##########################################################
InnoDB:                          WARNING!
InnoDB: The log sequence number in ibdata files is higher
InnoDB: than the log sequence number in the ib_logfiles! Are you sure
InnoDB: you are using the right ib_logfiles to start up the database?
InnoDB: Log sequence number in ib_logfiles is 4212811571, log
InnoDB: sequence numbers stamped to ibdata file headers are between
InnoDB: 5398286317 and 5398286317.
InnoDB: ##########################################################
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
161015 14:32:44  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 230.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 414.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 318.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 54.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 7166.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 534.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 726.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
InnoDB: Warning: database page corruption or a failed
InnoDB: file read of space 0 page 390.
InnoDB: Trying to recover it from the doublewrite buffer.
InnoDB: Recovered the page from the doublewrite buffer.
161015 14:32:51  InnoDB: Error: page 2 log sequence number 6448130721
InnoDB: is in the future! Current system log sequence number 4212811571.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB:
InnoDB: for more information.
161015 14:32:51  InnoDB: Error: page 4 log sequence number 6371107030
InnoDB: is in the future! Current system log sequence number 4212811571.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB:
InnoDB: for more information.
161015 14:32:51  InnoDB: Error: page 5 log sequence number 6448279778
InnoDB: is in the future! Current system log sequence number 4212811571.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB:
InnoDB: for more information.
InnoDB: Database page corruption on disk or a failed
InnoDB: file read of page 6.
InnoDB: You may have to recover from a backup.
161015 14:32:51  InnoDB: Page dump in ascii and hex (16384 bytes):
len 16384; hex 244d3408000000060000000000000
(后面就是n个0和F)
InnoDB: End of page dump
161015 14:32:52  InnoDB: Page checksum 609039368, prior-to-4.0.14-form checksum 3999017343
InnoDB: stored checksum 609039368, prior-to-4.0.14-form stored checksum 793934317
InnoDB: Page lsn 1 2153304077, low 4 bytes of lsn at page end 4212603187
InnoDB: Page number (if stored to page already) 6,
InnoDB: space id (if created with >= MySQL-4.1.1 and stored already) 0
InnoDB: Page may be a system page
InnoDB: Database page corruption on disk or a failed
InnoDB: file read of page 6.
InnoDB: You may have to recover from a backup.
InnoDB: It is also possible that your operating
InnoDB: system has corrupted its own file cache
InnoDB: and rebooting your computer removes the
InnoDB: error.
InnoDB: If the corrupt page is an index page
InnoDB: you can also try to fix the corruption
InnoDB: by dumping, dropping, and reimporting
InnoDB: the corrupt table. You can use CHECK
InnoDB: TABLE to scan your table for corruption.
InnoDB: See also
InnoDB: about forcing recovery.
InnoDB: Ending processing because of a corrupt database page.
161015 14:32:52  InnoDB: Assertion failure in thread 5116 in file buf0buf.c line 3608
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB:
InnoDB: about forcing recovery.



论坛徽章:
93
2015年辞旧岁徽章
日期:2019-10-10 10:51:15CU大牛徽章
日期:2014-02-21 14:21:56CU十二周年纪念徽章
日期:2020-10-15 16:55:55CU大牛徽章
日期:2014-02-21 14:22:07羊年新春福章
日期:2019-10-10 10:51:39CU大牛徽章
日期:2019-10-10 10:55:38季节之章:春
日期:2020-10-15 16:57:40ChinaUnix元老
日期:2019-10-10 10:54:42季节之章:冬
日期:2019-10-10 10:57:17CU大牛徽章
日期:2014-02-21 14:22:52CU大牛徽章
日期:2014-03-13 10:40:30CU大牛徽章
日期:2014-02-21 14:23:15
2 [报告]
发表于 2016-10-17 11:08 |只看该作者
试试慢慢调整innodb_force_recovery的等级来启动看看能不能修复。

论坛徽章:
0
3 [报告]
发表于 2016-10-17 14:26 |只看该作者
回复 2# seesea2517

1-6 都试过了,还是不行

没办法 最后把硬盘拿去 数据恢复了, 还好恢复出的数据可以用了  谢谢啦

论坛徽章:
93
2015年辞旧岁徽章
日期:2019-10-10 10:51:15CU大牛徽章
日期:2014-02-21 14:21:56CU十二周年纪念徽章
日期:2020-10-15 16:55:55CU大牛徽章
日期:2014-02-21 14:22:07羊年新春福章
日期:2019-10-10 10:51:39CU大牛徽章
日期:2019-10-10 10:55:38季节之章:春
日期:2020-10-15 16:57:40ChinaUnix元老
日期:2019-10-10 10:54:42季节之章:冬
日期:2019-10-10 10:57:17CU大牛徽章
日期:2014-02-21 14:22:52CU大牛徽章
日期:2014-03-13 10:40:30CU大牛徽章
日期:2014-02-21 14:23:15
4 [报告]
发表于 2016-10-18 09:30 |只看该作者
回复 3# AxThLE

数据无价,恢复花了不少钱吧。做远程备份以防万一啊。

论坛徽章:
7
数据库技术版块每日发帖之星
日期:2015-11-17 06:20:00数据库技术版块每日发帖之星
日期:2015-11-18 06:20:00数据库技术版块每日发帖之星
日期:2015-11-30 06:20:00数据库技术版块每月发帖之星
日期:2016-01-07 23:03:06数据库技术版块每周发帖之星
日期:2016-01-07 23:06:31数据库技术版块每周发帖之星
日期:2016-01-07 23:06:47数据库技术版块每日发帖之星
日期:2016-01-14 06:20:00
5 [报告]
发表于 2016-10-18 10:21 |只看该作者
回复 1# AxThLE

错误日志里面显示你的数据文件有很多损坏,mysql尝试用日志文件去恢复,但你的数据文件跟日志文件不匹配,数据文件是最新的,但日志文件是“旧的”。你能找到原来的日志文件吗?或者你的binglog在吗?如果binlog在的话,也可以尝试恢复下数据库。

论坛徽章:
307
程序设计版块每周发帖之星
日期:2016-04-08 00:41:33操作系统版块每日发帖之星
日期:2015-09-02 06:20:00每日论坛发贴之星
日期:2015-09-02 06:20:00程序设计版块每日发帖之星
日期:2015-09-04 06:20:00每日论坛发贴之星
日期:2015-09-04 06:20:00每周论坛发贴之星
日期:2015-09-06 22:22:00程序设计版块每日发帖之星
日期:2015-09-09 06:20:00程序设计版块每日发帖之星
日期:2015-09-19 06:20:00程序设计版块每日发帖之星
日期:2015-09-20 06:20:00每日论坛发贴之星
日期:2015-09-20 06:20:00程序设计版块每日发帖之星
日期:2015-09-22 06:20:00程序设计版块每日发帖之星
日期:2015-09-24 06:20:00
6 [报告]
发表于 2016-11-11 20:00 |只看该作者
i6first 发表于 2016-10-18 10:21
回复 1# AxThLE

错误日志里面显示你的数据文件有很多损坏,mysql尝试用日志文件去恢复,但你的数据文件 ...

数据文件与 log 不匹配, 麻烦大神提示一下 从哪里看到的?

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP