Virus solution:
 
Panda Antivirus: Award-winning virus protection
Panda Antivirus Pro 2009 - Box Shot
 

Main Menu
 
· Home
· Articles
· Chat
· Downloads
· Feedback
· Forums
· Recommend Us
· Statistics
· Submit News/Articles
· Surveys
· Top 10
· Topics
· Tutorials
· Video Stream
· Web Links
· Your Account
 

Link Us
 

Please help our community grow by linking to our site, copy the code on the text box below. We appreciate your support!

Knock Information Technology Good

Thank You!
Link Directory

 

Referrals
 

affiliate_link
Blingo
 

Who's Online
 
There are currently, 10 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
 

MySQL Table Corruption Due to Error While Using an Optimize Table

MySQL Table Corruption Due to Error While Using an Optimize Table

By: Naveen Kadian

MySQL OPTMIZE TABLE command is used to de-fragment a MySQL table and thus reclaim its unused space. You generally use this command when you delete a large part of the particular table or make several changes to it with variable-length rows. But while the OPTMIMIZE TABLE command is running, the server should run seamlessly. Any interruption while this process is running could cause database to corrupt. In such situations, you either require using your recent data backup or commercial MySQL Database Recovery tools.



As an example, you run OPTIMIZE TABLE command on table 'A' and MySQL Server process gets unexpectedly killed. The next time, when you start the database, you find table 'A' giving corruption errors. Such errors also occur even if use FLUSH TABLE (used to clear and reload internal caches used by MySQL) command before using OPTMIMIZE TABLE command.

Cause

MySQL database table is corrupted due to unexpected interruption while OPTIMIZE statement is de-fragmenting the database table. MySQL could not read such tables and gives corruption errors.

Solution

To fix such corruption errors, you should follow these steps in order:

• Check database table for consistency. To do so, execute CHECK TABLE command with following syntax:

CHECK TABLE table_name

Before running the command, make sure that you are connected to the server. The command can be used with options like QUICK, MEDIUM, FAST and CHANGED etc. If using MyISAM, you can also use myisamchk command-line utility.

• If the above check reports corruption, next you should repair the database table using following command:

REPAIR TABLE table_name

This command accepts parameters like QUICK, EXTENDED and USE_FRM. In case of MyISAM database, you can use myisamchk utility with recovery option -r.

• You should again verify the database integrity using CHECKTABLE or myisamchk utility. If it still reports corruption, use your recent database backup to restore.

• If no clean backup is available, scan your database using third-party MySQL Recovery applications. Such tools examine the corrupted database using powerful scanning algorithms, repair it and restore it at a safe location. They provide you efficient MySQL Database Recovery through interactive interface.

Stellar Phoenix Database Recovery For MySQL is the comprehensive MySQL Recovery application to repair and restore corrupt MySQL tables. It supports MySQL 4.x and 5.x. and can recover database files for both InnoDB (.ibdata, .ibd and .frm) and MyISAM (.myd, .myi and .frm) database storage engines. This software restores all database objects, like tables, relations, primary key(s), and others. It can recover databases based on Windows and Linux platforms and is compatible with Windows Vista, XP, 2003, and 2000.

Naveen Kadian is a self employed Internet entrepreneur and product reviewer Stellar Phoenix Database Recovery For MySQL is the premier MySQL Repair tool that can instantly repair and restore corrupt MySQL databases. It supports InnoDB (.ibdata, .ibd and .frm) and MyISAM (.myd, .myi and .frm) files.

 


Posted on Thursday, July 16 @ 02:58:13 EDT by phantom
 
 
Login
 
Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.
 

Related Links
 
· More about Software
· News by phantom


Most read story about Software:
UltraGet: The Ultimate YouTube Video Downloader?

 

Article Rating
 
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad

 

Options
 

 Printer Friendly Printer Friendly

 

Associated Topics

Software
 

 
 
 
 1:iNotes v1.0
 2:DOS Source Code
 3:Door Lock System
 4:Winamp 5.5 Full Version
 5:SSH Communications 3.2
 6:ADO Tutorials
 7:Flash and ASP Intergration
 8:Adding Machine
 9:Mem Defrag Concept
 10:LimeWire v4.12.6