有效恢复MYSQL受损数据

突然断电,重启后导致个人电脑中的wordpress数据库受损;
此数据是在本地经过很长一段时间的录入、维护的,而且在本地从末因断电或其他原因导致的数据损坏,故没有备份。所以很心塞!

故障从wamp(wamp server 2.5)服务无法正常启动开始,查apache错误日志和mysql日志以及计算机事务日志,找到关键提示:

InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.
2016-08-19 09:26:26 5488 [Note] Plugin ‘FEDERATED’ is disabled.

原因是mysql发生crash错误导致无法恢复而引起的wamp启动失败!
继续阅读有效恢复MYSQL受损数据