Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.51 sec)
HELP ! Mysql is complaining about corrupt database tables

How do I fix corrupt database tables in MYSQL properly ?

It still restarts but I've never done this before or seen this error.

Can someone please help ???
Asked by:
lando372
77 points
 Report Abuse
 Share Page - Category: CentOS Linux - Tags: HELP ! Mysql is complaining about corrupt database tables
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Best Answer

The simple way is to run mysqlcheck -r -A -p r:Repair A:All databases p:Prompt for password.

If you only want to do one database drop the -A and put the database name on the end.

This tends to correct most common errors, if it's well and truly corrupted you can look at myismchk to manually repair each table as long as they're myisam.

Response by:
_SteveWilson ...
4290 points
You can restore corrupted table from backup, if "mysqlcheck" is not successful

Response by:
jalal
3623 points
Thank you SteveWilson !

Response by:
lando372
77 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle