Recovering Mysql Database From The Error 1146 (42s02) Error
Consider a scenario wherein you start the MySQL server and the following error message is displayed.
Default storage engine is not available.
When you encounter the aforementioned error message, you reinstall the server without removing its data directory. Now, when you start the MySQL server it runs perfectly. However, when you access any arbitrary table in a database, if fails to open and an error message is displayed, that is:
ERROR 1146 (42S02): Table 'Table_name' doesn't exist.
Where, Table_name is the name of the table.
When you use the mysqlcheck command to solve the issue, the aforementioned error message still appears.
Cause:
The error message appears because of a corrupt database. And the MySQL database can get corrupt due to various reasons such as virus infections, abrupt shutdown while the database is open, human errors, etc.
Resolution:
First of all, you should backup the corrupted table to avoid any further mishaps. Then you should use the Repair command to repair the corrupted table, either with the Quick or the Extended clause.
However, if the issue is still not resolved then you should consider using a third-party MySQL repair tool that will enable you to Repair MySQL database. These highly interactive tools are read-only in nature and do not overwrite the original data, thereby ensuring safe MySQL recovery.
MySQL Database Recovery software is an efficient tool that employs complex scanning algorithms to recover MySQL database. It can recover various types of MySQL database files such as .ibdata, .ibd, .frm, .myd, .myi, and .frm created in MySQL 5.x or 4.x. It is compatible with Window 7, Vista, 2003 Server, XP, 2000.