| 1888 Articles Home | Computer Articles | Data Recovery Articles | Windows Articles | Data Recovery RSS | ![]() |
||
Repairing MySQL database when the table gets crashed – Error 145 |
||||
|
The MyISAM database engine is the default database engine for MySQL database. It provides a variety of indexing and field management functions. |
||||||||||||
| Author: Manya Gupta |
|
|||||||||||
Consider a scenario wherein you encounter the following error message while working on a MySQL database table:
“MySQL error code 145 = Table was marked as crashed and should be repaired”
Cause:
The most possible cause of this error message is that the database has corrupted due to not having enough space for the database.
Resolution:
To resolve the problem and extract the database after appearance of the aforementioned error message, you can perform the following methods:
Make a copy of the database.
Stop the mysqld server.
Run the myisamchk -r -q to repair the index file without affecting the file. It is used to perform quick recovery of the database.
If the previous step fails, then try the myisamchk --safe-recover command. It is used to perform a detailed scan and repair of the database.
If the previous step fails, then you should create a blank data and index files by using the following commands:
shell> mysql db_name
mysql> SET autocommit=1;
mysql> TRUNCATE TABLE tbl_name;
mysql> quit
Copy the old data file in the new one. This should resolve the issue.
These methods will be able to solve the problem. However, if you are unable to resolve the issue then you should use a third-party MySQL database repair tool to recover MySQL database. Such read-only tools are non-destructive in nature and do not overwrite the original data while scanning the corrupted database.
Stellar Phoenix Database Recovery for MySQL is a MySQL recovery software that enables you to repair MySQL database. It is capable of repairing the corrupted databases created in MySQL 4.x or 5.x versions. This MySQL repair tool is able to recover various database components such as tables, views, etc. It supports the recovery of various MySQL files of .myd, .myi, .frm, .ibdata, .ibd, and .frm from InnoDB and MyISAM database engines. This MySQL recovery tool is compatible with Windows 7, Vista, Server 2003, XP, and 2000.
About Author
Manya Gupta is a database recovery expert and doing research on database repair and MySQL database repair .
To know more about MySQL database recovery just visit : http://www.database-repair-software.com/mysql-database-repair.php
Article Source:
http://www.1888articles.com/author-manya-gupta-33422.html
Other Related Articles Watch Predators online and feel the nightmare! by Hersimar Small Cash Loans – Bid Farewell to Financial Problems by Andy Copper Repairing MySQL database when the table gets crashed – Error 145 by Manya Gupta Greater Media Flexibility Offered By DLT and SDLT Tape Storage Technologies by Shawn Paul Damaged MSysObjects Table Cause Access Database Corruption by Golvin |

