How to retrieve data from corrupt or damaged MySQL tables

Posted: Feb 24, 2011 |Comments: 0 |

<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->

MySQL offers a much better performance as compared to other database management systems. It effectively solves the business needs of big enterprises and can efficiently handle large or bulky websites. It has got several distinguishing features, such as multiple native and custom storage engines to choose from, commit grouping etc. that make it one of the highly recommended databases for developing web applications. But despite of all these significant features, there is a limitation that this database is prone to corruption. Corruption may occur due to any reason, such as virus attack, forcibly quitting MySQL server, improper system shutdown, power surge, etc. All these factors would lead to a corrupt MySQL database and prevent you from accessing the data stored in tables and other database components. To overcome this problem, you need to go for MySQL recovery through a reliable third-party tool.

For instance, you may receive the following error message while trying to access a particular MySQL database table:

"Table 'tablename' is marked as crashed and last (automatic?) repair failed"

Cause:

The following reasons may have caused the above error:

  1. An operating system error.

  2. Hardware problems

  3. Using 'myisamchk' utility on a live table.

  4. Power failure could be a major reason behind the occurrence of such error.

  5. The data or index files may be corrupt.

The above error may render the database and all its objects inaccessible ,and you will lose all the vital information stored therein. To recover MySQL database from such error and restore all its components, you can use an updated backup. If the backup is missing, you should follow the below mentioned resolution steps.

Resolution:

These steps will help you check and repair your corrupt database-

I. For analyzing and checking the damaged 'abc.myi' table, you can use the 'myisamchk' command-line utility or the Check Table SQL statement.

'myisamchk abc.myi'
Or
'Check Table abc'

II. For repairing the corrupt 'abc.myi' table, you can use the 'myisamchk' command-line utility or the Repair Table SQL statement.

'myisamchk -r –q abc' (-r -q signify "quick recovery mode")
Or
'Repair Table abc'

If these resolution steps do not repair the corrupt MySQL table, you should take help of a comprehensive MySQL database recovery software. These software employ powerful scanning algorithms that can efficiently repair any corrupt MySQL database file created in InnoDB and MyISAM database engines.

Stellar Phoenix MySQL Database Recovery is a proficient tool that repairs corrupt MySQL tables and restores the repaired data in a new MySQL table. It enables you to perform a selective recovery of MySQL database components. It supports MySQL 3.x, 4.x, 5.x, and 6.x versions.

Questions and Answers

Ask
200 Characters left
Rate this Article
  • 1
  • 2
  • 3
  • 4
  • 5
  • 0 vote(s)
    Feedback
    Print
    Re-Publish
    Source:  http://www.articlesbase.com/data-recovery-articles/how-to-retrieve-data-from-corrupt-or-damaged-mysql-tables-4299863.html

    Article Tags:

    mysql repair

    ,

    repair mysql

    ,

    repair mysql database

    ,

    mysql database repair

    ,

    mysql database recovery

    MySQL is an open source database that has got a fair amount of users all over the world. It is fast, secure, reliable, and easy to use. Apart from being the most used open source database, it is an excellent option for the applications built on the LAMP (Linux, Apache, MySQL, PHP/Perl/Python) platform.

    By: Manya Guptal Computers> Data Recoveryl Jul 13, 2010 lViews: 173
    Mark Willium

    MySQL is a popular database management system, a most widely used for web databases, offers efficient techniques to ensure absolute integrity of the database.

    By: Mark Williuml Computers> Data Recoveryl Dec 27, 2010
    Mark Willium

    In MySQL databases, the MyISAM table is the default database engine, which provides a variety of functions to manage fields and indexes.

    By: Mark Williuml Computers> Data Recoveryl Dec 21, 2010

    The MyISAM database engine is the default database engine for MySQL database. It provides a variety of indexing and field management functions. Its ability to swiftly perform the read operations on the databases is one of the biggest reasons of MySQL being so popular as a backend for Web applications.

    By: Manya Guptal Computers> Data Recoveryl Jul 13, 2010 lViews: 170

    MySQL is one of the most popular open-source database in the world. The reasons its popularity is its availability, performance, robust transactional support, etc.

    By: Manya Guptal Computers> Data Recoveryl Jul 16, 2010

    An Outlook .ost file is playing a major role in providing effective communication and managing user's data by Microsoft Outlook e-mail client.

    By: christa123l Computers> Data Recoveryl Jun 02, 2012

    The main issue with office based systems is the day-to-day running costs, with servers needing to be updated on a daily basis, and unless you employ an I.T. manager then running a server can be a costly business.

    By: mowbel Computers> Data Recoveryl Jun 01, 2012

    Accidently deleted your precious data from your iPod Classic? Don't panic. All you need is Photo Recovery for Win when you lose files from your iPod Classic. Follow this guide to do iPod classic recovery only by a few clicks.

    By: a357271913l Computers> Data Recoveryl May 30, 2012

    Accidently deleted your precious files from your memory card? Don't panic. All you need is Photo Recovery for Win when you lose files from your card. Follow this guide to get back your card memory only by a few clicks.

    By: a357271913l Computers> Data Recoveryl May 29, 2012

    Hard drives nowadays are becoming problematic and no matter whatever brand hard drive you use, it has been seen that clicking sounds are coming out of every second hard drive. If you think that you having a Hitachi, Seagate, western digital or any other hard drive would not cause this problem, then you are only in blue.

    By: hdrconlinel Computers> Data Recoveryl May 29, 2012
    Mark Willium

    SharePoint users occasionally find themselves besieged by a plethora of problems concerning SQL database corruption. It is imperative to perform routine database maintenance while working in a SharePoint environment to get the peak performance without having to compromise anything.

    By: Mark Williuml Computers> Data Recoveryl Mar 17, 2012
    Mark Willium

    After opening an instance of Oracle, the application needs a database to be allocated to it. This allocation of database is known as 'mounting' and only after a successful mounting you can work on the database.

    By: Mark Williuml Computers> Data Recoveryl Feb 25, 2011
    Mark Willium

    MySQL is used by many organizations, entrepreneurs and individuals as the relational database system to provide multiuser access to multiple numbers of databases.

    By: Mark Williuml Computers> Data Recoveryl Feb 25, 2011 lViews: 134
    Mark Willium

    While working on your SQL Server database, sometimes the database tables become completely inaccessible following any corruption or damage to the database.

    By: Mark Williuml Computers> Data Recoveryl Feb 22, 2011

    Discuss this Article

    Author Box
    Articles Categories
    All Categories
    Quantcast