Remember Me
forgot your password?

‘table_name .frm is locked against change’ MySQL Error and Recovery

Each MySQL table is represented by an .frm file on disk, no matter which storage engine you use. An .frm file describes the table definition and possesses the same name as of table. The corruption of .frm file leads to table inconsistencies. It could happen due to improper locking of table, DLL file errors, system faults, disk issues, virus attack, unexpected shutdown etc. You need to use your recent data backup to restore data in such situations. However, if data backup exists in invalid state, or is not available at all, you need to use MySQL Database Recovery applications that prove to be safe tools for repairing damaged MySQL databases.

You might receive the following error message with MySQL database table(s):

“<table_name>.frm is locked against change”

Cause

The primary cause for the occurrence of above error message is corruption of .frm file.

Solution

In order to correct such corruption errors, you require following these steps:

  • You need to first ensure about table corruption. To perform this check, use CHECK TABLE command while server is running. It follows the below syntax and is used with options, like QUICK, FAST, MEDIUM etc.:

CHECK TABLE tablename [options]

If you are using MyISAM, you can alternatively run ‘mysqlcheck’ or ‘myisamchk’ command-line utilities.

  • If database check reports table corruption, you need to repair it next. Before repairing, make sure that about twice as much disk space as of affected table is available. Use REPAIR TABLE command with options, like QUICK and EXTENDED. The syntax is:

REPAIR TABLE tablename [options]

For MyISAM tables, use of ‘mysqlcheck’ or ‘myisamchk’ is also applicable.

  • If above measures fail to fix table corruption, you need to delete the damaged table if valid backup exists.
  • If no backup is available, or you find backup in invalid state, make use of commercial MySQL Recovery applications to repair and restore damaged MySQL tables. Such software are complete database repair products that scan corrupted databases using powerful scanning algorithms. These MySQL Database Recovery tools provide automated recovery options together with interactive interface and read-only design.

Stellar Phoenix Database Recovery For MySQL is a premier utility to repair and restore damaged MySQL tables. The software supports MySQL 5.x. It can recover database files for both InnoDB (.ibdata, .ibd and .frm) and MyISAM (.myd, .myi and .frm) database storage engines. It can restore all database objects, like tables, relations, primary key(s), and others. It can recover databases of Windows and Linux platforms and is compatible with Windows Vista, XP, 2003, and 2000.

colindolly

Colin Dolly 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.

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Software Articles
  • More from colindolly

Spyware Remover Review – How To Completely Remove The Spylocked Spyware Infection

By: Donald Chambers | 24/12/2009
Do you wish to learn how to completely remove the spylocked spyware infection with a high quality online spyware remover program? Spyware has the main function of infiltrating a PC system to secretly steal information and monitor the user's activities without the awareness of the user.

Removal Computer Virus Software – How to Stop Adware Spyware Infections

By: Donald Chambers | 24/12/2009
Do you want to learn how to stop adware spyware infections with the latest computer virus software? A PC virus is capable of infecting computer software, hardware and its operating system. It replicates itself as many times as it wants and can spread to other systems with its replicated copies. A computer virus attack can potentially cause serious problems for the user and is known to be the most dangerous and potentially destructive malicious software around.

Software Spyware Remover Review – How To Get Rid Of Possible Spyware Or Adware Infection

By: Donald Chambers | 24/12/2009
How to get rid of possible spyware or adware infection with software spyware remover? A long time ago, the threat of malware such as adware and spyware was only very minor. However, this threat has been increasing significantly over the past couple of months and is becoming a priority for IT users worldwide.

Report Sharp-Shooter for Silverlight is fully compatible with Windows 7

By: Perpetuum Software Team | 24/12/2009
12/12/2009 – Perpetuum Software LLC announces that Report Sharp-Shooter for Silverlight is fully compatible with Windows 7. We are proud to assure our clients that Report Sharp-Shooter for Silverlight works on Windows 7 without fail.

Sync iPod to a new computer, iPod to a new computer transfer

By: Susan Lyrics | 24/12/2009
Most users like to sync iPod to computer. But how to transfer iPod to a new computer easily? You can make it with iPod to computer transfer like Cucusoft. It features sync iPod/iPhone music, videos to computer, even sycn all files from iPhone to iTunes.

The Payroll Plunge

By: Harry Slay | 24/12/2009
When it comes to managing finances, even the last cent has to be taken into account especially if you are dealing with an employee’s paycheck.

How to rip DVD to video audio files like AVI WMV MPEG FLV 3GP MP4 MP3?

By: chase telford | 24/12/2009
This step-by-step guide will show you how to rip DVD to AVI, WMV, MPEG, FLV, 3GP, MOV, VOB, ASF, MP4, etc, extrac audio from DVD to MP3, WMA, M4A, AAC, WAV, etc and edit DVD Movie with Aimersoft DVD Ripper

Most Common Payroll Mistakes

By: Harry Slay | 24/12/2009
Another common payroll mistake that you have to be aware of is the failure to include any additions to the hourly rate before computing for the overtime pay.

Tips to resolve “Could not repair this database” Error Message

By: colindolly | 23/12/2009 | Data Recovery
Stellar Phoenix Access Recovery is a powerful Access Database Repair tool that repairs corrupt tables and restored them on default or new user-specified location. The database repair tool also repairs other database objects like query, form, and module.

Resolving “A problem occurred in your database...” Error Message

By: colindolly | 22/12/2009 | Data Recovery
Stellar Phoenix Access Recovery easily repairs databases created in Access 2007, 2003, XP (2002), and 2000. The repaired database can be saved on user-specified location. The Access Database Repair utility is designed for Windows 7, Vista, 2003, XP, and 2000 operating systems.

“You requested an invalid file...” Error post Access database corruption

By: colindolly | 18/12/2009 | Data Recovery
Stellar Phoenix Access Recovery is a powerful Access Repair application to repairs severely corrupted database with ease. The repair software supports Access 2007, 2003, XP (2002), and 2000, and repairs components like, query, table, module, and form. It is designed for Windows 7, Vista, 2003, XP, and 2000 operating systems.

Resolving Query Corruption in MS Access

By: colindolly | 17/12/2009 | Data Recovery
Stellar Phoenix Access Recovery is an effective Access Repair application that repairs almost all MS Access database components, including query, table, module, and form. Compatible with Access 2007, 2003, XP (2002), and 2000, the read only software supports Windows 7, Vista, 2003, XP, and 2000 operating systems.

Tips to resolve “The Search Key was not found...” Error message

By: colindolly | 16/12/2009 | Data Recovery
Stellar Phoenix Access Recovery is a powerful Access Database Repair tool that repairs corrupt tables and restored them on default or new user-specified location. The database repair tool also repairs other database objects like query, form, and module.

Resolving “Microsoft Office Access has detected corruption...”

By: colindolly | 14/12/2009 | Data Recovery
Stellar Phoenix Access Recovery is a powerful Access Repair tool that repairs and restores Access 2007, 2003, XP (2002), and 2000 database on default or new user-specified location. Designed for Windows 7, Vista, 2003, XP, and 2000 operating systems, the software easily repair database objects like, query, form, module, etc.

Abnormal Termination of MS Office by using Task Manager

By: colindolly | 11/12/2009 | Data Recovery
Stellar Phoenix Access Recovery is a powerful Access Repair tool that repairs and restores Access 2007, 2003, XP (2002), and 2000 database on default or new user-specified location. Designed for Windows 7, Vista, 2003, XP, and 2000 operating systems, the software easily repair database objects like, query, form, module, etc.

Resolving “Cannot open database XX...” Error Message

By: colindolly | 08/12/2009 | Data Recovery
Stellar Phoenix Access Recovery systematically repairs Access database(s) corrupted after upgradataion. The software is compatible with Access 2007, 2003, XP (2002), and 2000 and recovers all objects like, query, form, module, etc.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.56, 1, w2)