如何恢复损坏的MySQL InnoDB数据文件

时间:2015-05-20 20:44:22

标签: mysql linux file-io

我的MySQL由于I / O问题而崩溃,InnoBD数据文件已损坏,每当我尝试复制或移动数据文件时,都会收到以下消息:

cp: reading `ibdata1': Input/output error
cp: failed to extend `/root/ibdata1': Input/output error

我还在日志中发现了这个错误:

mysqld: InnoDB: Error: tried to read 16384 bytes at offset 0 10665984.
mysqld: InnoDB: Was only able to read 8192.
mysqld: 150518  9:00:17  InnoDB: Operating system error number 2 in a file operation.
mysqld: InnoDB: The error means the system cannot find the path specified.
mysqld: InnoDB: File operation call: 'read'.
mysqld: InnoDB: Cannot continue operation.

我该如何解决这个问题?

0 个答案:

没有答案