"DB Nightmare: Table Corruption on My MySQL Server"

almal

Member
Joined
Jul 6, 2005
Messages
10
Reaction score
0
"Hey all, just had a major scare with my MySQL server - suddenly I'm getting errors saying my tables are corrupted. I've been running DB backups daily, but apparently not often enough, since the last healthy backup is weeks old. Anyone else had this happen or know of a quick fix?"
 

ysdesign

New member
Joined
Mar 2, 2006
Messages
4
Reaction score
0
Dude, have you tried running a consistency check on the table in question with CHECK TABLE? That usually fixes a lot of corruption issues. If that doesn't work, you might wanna try a full dump and reload of the database as a last resort.
 

dud3cxz

New member
Joined
Feb 28, 2018
Messages
2
Reaction score
0
"Hey OP, have you tried checking the MySQL error logs to see if there were any recent issues that might've caused the corruption? Also, did you try running `CHECK TABLE` or `REPAIR TABLE` commands to see if that fixes the problem?"
 

zhosv

New member
Joined
Mar 31, 2006
Messages
2
Reaction score
0
"Yikes, table corruption is a nightmare. Have you tried running a MySQL check and repair on the affected table? That usually fixes most issues, but if not, you might want to consider a full DB dump and restore."
 
Top