Your Name     
Your Email-Id      
  
Home Subash SEO Home About Us Testimonials FAQ Bulk Discount Contact Us Sitemap
LatestSEO NewsMedia NewsDevelopmentTechnology NewsAll
Killing INSERT SELECT Can Corrupt MySQL Table on MyISAM
Poster By : sheebha sunitha On : Jul 29 2011 12:04:55  Views : 111
Posted In : Development
 But at times, when you kill the command on MyISAM, you observe that the table gets corrupt. Such type of errors usually occur with large data sets.

When you run CHECK TABLE command to check the table for consistency, it reports that the table is unusable as it is corrupt. The table thus corrupted should be restored from backup or you can alternatively use MySQL Repair tools that are competent products to allow safe repair of database and its objects.

To illustrate the same, consider that you use a table with name 'a' on MyISAM storage engine'. You execute INSERT SELECT command and kill it while it is running. After this, you use CHECK TABLE command to perform the sanity check of the table and come across errros similar to:

Table Op Msg_type Msg_texttest.a check warning Table is marked as crashed and last repair failedtest.a check warning Size of indexfile is: 1337344 Should be: 1024test.a check error Record-count is not ok; is 92522 Should be: 0test.a check warning Found 92522 key parts. Should be: 0test.a check error Partition pMin returned errortest.a check error Corrupt

Cause

The error indicates that the table has got corrupt. When you kill the INSERT SELECT statement, which is being applied on the table with indexes and contains large amount of data, it might get corrupt.

This occurs when we disable the indexes for the purpose of fast insert. After the bulk_insert operation is completed, indexes are tried to be re-enabled. While MySQL is re-enabling the indexes, killing the query results into aborting the repair table operation and hence the table gets corrupt.

Solution

Use any of these methods to repair the corrupted MyISAM table:

You can use the following command to repair:

 REPAIR TABLE table_name

 Where, table_name is the name of corrupted table

Use MySQL Recovery tools for achieving best and safe repair results. MySQL Repair tools are fully-competent database recovery utilities built with powerful scanning technology and easy to use interface.

Stellar Phoenix Database Recovery For MySQL is the most powerful and advanced MySQL Recovery utility. It supports both MySQL database storage engines - MyISAM and InnoDB and is competent to completely repair and restore MySQL objects such as tables, primary key(s) and relations.

It is compatible with Windows Vista, XP, 2003 and 2000. It supports MySQL 5.x. It also supports Windows based recovery from MySQL database installed on Linux platform.
               
Goto Back
 
 
Some most popular and most profitable data entry jobs
Get Visually Appealing Website With PSD to WordPress Template
Finding a Legitimate Online Data Entry Job
A Guide To Free Data Entry Online Tasks
Minimum requirements for the data entry job
Making Money With Data Entry Work at Home
Making Money With Data Entry Work at Home
Outsourcing Data Entry Services in India
Time Saving and Money Saving Data Entry Services
Why Online Form Data Entry is Cost Effective
A Circumstance For PHP Endeavor Board Software   Views : 656
Link Your Website Using Precious Link Building  Views : 606
Is Social Bookmarking a Multilevel Marketing Tool  Views : 598
Using CSS in Web Design  Views : 505
What is PHP Why PHP is so popular  Views : 490
Thoughtful Benefits of PHP Application Development  Views : 478
Java Game Development Tools  Views : 464
Is News Release Distribution is an useful SEO Service  Views : 462
March 15th 2011 is the End for Facebook  Views : 457
Features of PHP 5 Revive PHP Application Development  Views : 432
Web 2.0 Blogging Service
  
  
  
  
  
  
  
  
  
News Release Distribution
  
  
  
  
  
  
  
Social Bookmarking
  
  
  
  
Articles Marketing
  
  
  
  
  
  
  
  
  
  
Guaranteed Search Engine Optimization
  
  
  
  
  
  
  
    
Business Directory Listing
  
  
  
  
Directory Submission
  
  
  
  
  
  
Facebook