大网数据广告活动
服务器运维问答

Restore missing data after mySQL repair operation?

· 52CE 我爱测

Our database became corrupt after a server restart so we ran a repair on all tables but we're now missing random pockets of data across all tables. When mySQL repair runs, does it back up the bad data before it is removed? Is the…

问题原文

原帖链接 · cronoklee · CC BY-SA 3.0

Our database became corrupt after a server restart so we ran a repair on all tables but we're now missing random pockets of data across all tables. When mySQL repair runs, does it back up the bad data before it is removed? Is there any other way to see what was deleted from the tables and restore it manually?

已采纳解答

原帖链接 · Reaces · CC BY-SA 3.0

Your only option is to restore a previous backup.
MySQL repair does not backup any data, in fact the manual recommends you create a backup before running the repair.

Caution Make a backup of a table before performing a table repair operation; under some circumstances the operation might cause data loss. Possible causes include but are not limited to file system errors. See Chapter 8, Backup and Recovery.

You can either restore the backup and run from the backup, or restore the backup next to your now repaired table, and compare the data manually.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。