MySQL Repair!

Mysql is most widely used database management language. Mysql database is developed and owned by Sun Microsystems, the world's largest contributors to open source database. MySql is a well known open source sql relational database management system used by the web developers today. My sql is an important part of LAMP (Linux, Apache, My sql, PHP/Pearl/Python), the quick growing enterprise software stack.

Today many companies are opting for LAMP as a substitute to costly proprietary software stacks because it offers lower cost and freedom from platform lock-in. Mysql runs on many platforms including Linux, Windows, Netware and offers a comprehensive range of certified software, training and support to make you successful. With mysql inexperienced programmers can modify and create a databases consisting of multiple tables. Mysql does what it takes to generate such databases and manage them efficiently.

Mysql database is known for its stability but like as many other software there might be bugs which could crash the mysql tables. When your database starts misbehaving all of a sudden, it is possible that you may have a database or table corruption. Reasons for Mysql database corruption are as follows-

1. In the middle of the write mysqlId process have been killed.

2. Software bug in the MyISAM code and Mysql.

3. On a live table if you are using an external program like myisamchk.

4. Hardware error like faulty cpu/motherboard/memory.

5. Suddenly the computer is turned off or accidentally shut down of computer.

6. Virus infection.

7. Corruption in “.myd” and “.myi” files.

Symptoms of Mysql database corruption are as follows-

When you get error messages like the following-

1. Incorrect key file for the table.

2. Unexpected end of file.

3. ‘tbl_name.frm' has been locked against change.

4. Unable to find file ‘tbl_name.MYI' (Errcode :###)

5. Record file has been crashed

6. From the table handler got error ###.

Where ### refers to Mysql error codes which returns an error number like-

126: index file is crashed/incorrect file format.

127: Record file is crashed.

132: Old database file.

134: Record was already deleted.

135: No more room in record file.

136: No more room in index file.

141: Duplicate unique key or constraint on update or write.

144: Table is crashed and last repair failed.

145: Tables marked as crashed and should be repaired.

If you are storing anything mysql databases that you do not want to lose, then it is very essential to make regular backup of your data to protect it from loss. It is a very good idea to take a backup of your Mysql data occasionally as a precautionary measure. Before making any major changes it is good to create backups, incase anything becomes wrong and you need to revert it to the unmodified version. If you are moving your data to a new server, or you have removed the old database completely you can repair and restore it again by the use of command line code-

mysqldump –u user_name –p your_password database_name >


If you are unable to repair mysql databases or restore mysql databases then you can opt for stellar phoenix software which will repair and restore your mysql databases easily. It is non-destructive and read only software. You can download the free trial versions of this software from online to scan your drive to repair your mysql lost data. Buy the software online and complete your Mysql repair.