Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is a good program to monitor mysql tables for corruption, one that would email me as soon as there is a corrupted table? I'm not looking for mysql workbench or admin to manage the database. But one that will actively monitor the tables and email reports.

share|improve this question

Corruption is tough to look for, but there are some methods.

Maatkit has some amazing tools for this. mk-table-checksum in particular is useful:

You can restore from a backup onto another machine, and compare all the rows that you think should be the same, or just eyeball the diffs to make sure they all make sense. However, there isn't any strong checksumming built into the row formats, so if you aren't doing your own data checksums, you're at the mercy of bitrot on your disks nad weird memory corruption errors. :-P

share|improve this answer

A simple crontab with mysql check command can do the trick !

mysql check table <table_name>;
share|improve this answer

MONyog - MySQL Monitor is very handy tool to monitor your MySQL database this tool allows you to monitor custom query output as well and if result is not valid one you can get email-alerts for those. I am consistently monitoring table corruption queries like


To monitor status of my tables.

For more information on how to monitor custom queries you can refer:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.