Yesterday one of our computer’s user partition filled up
automatically that caused database corruption in the mysql
database. After freeing the space from the partition, we ran some
commands to repair and recover mysql database. Here is the list
what we did yesterday:
1.cd into your directory where your database files are stored. In
my case it was in the /usr…/data/mysql/ folder.
2.Then We run this command:
myisamchk *.MYI | grep -3 –color corrupted
3.After running above command this should give you some output on
the current state of your database files & indicate which
file is corrupted and need to repair. This also gives you the
next command to run on the line that is:
Fix it using switch “-r” or “-o”
4.So that is we did
myisamchk -r file.MYI
5.Your database should be repaired
MythTV is a home entertainment application, which is freely
available as a open source solution for live streaming programs,
and converts into a computer with the necessary supporting
hardware components. This application is able to run on different
operating systems such as Linux, Macintosh, FreeBSD, etc and
primarily uses MySQL database as the backend to store the
recordings. Having started in 2002, this application has
undergone several developments and now is a competent combination
of a TV and a computer. Having said that, at times you may face
some issues while operating on the MythTV. Sometimes these issues
may be because of corrupt database that can appear because of
several reasons including virus infections, abrupt or unplanned
system shutdowns, etc. You should try to fix such issues by using
in-built MySQL methods failing which the use of a third-party
MySQL repair software to repair MySQL database is a must.
Let us consider …