Solved

Why didn't InnoDB table recover?

Posted on 2014-01-10
1
616 Views
Last Modified: 2014-01-11
I use MySQL Workbench 6.0 for MySQL 5.6 running on my W7 64 pc.

I was altering a table when my pc crashed.  After reboot, I got an error when I tried to run a query on the table that the table didn't exist.  Looking in the system log, I found:

InnoDB: table ltbhouston/sellers contains 13 user defined columns in InnoDB, but 12 columns in MySQL. Please check INFORMATION_SCHEMA.INNODB_SYS_COLUMNS and http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how to resolve it
InnoDB: Cannot open table ltbhouston/sellers from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2014-01-10 21:13:10 1b34  InnoDB: table "ltbhouston"."sellers"is corrupted. Please drop the table and recreate

I see in the system log that it took steps to recover from the crash using the bin logs.

Questions:
1) What could have caused the recovery to fail?
2) Is there something I can reconfigure to make recovery more bulletproof so it can recover the table to prior to the alter table operation (i.e. in the future should something like this happen again)?
3) How can I recover the table so I don't have to lose a day's work by restoring last night's backup?  I reviewed the links referenced in the system log, but didn't see how I could use the info to try and recover the table

Thanks for your help--
Sam
0
Comment
Question by:SAbboushi
1 Comment
 
LVL 19

Accepted Solution

by:
Patricksr1972 earned 500 total points
ID: 39773192
Hi

1) there could be queries present in memory but not yet written to the database in time the machine crashed.
2) No there is not, chrashes while running an active DB surely can corrupt open databases.
3) From the error i read "ltbhouston"."sellers" is corrupted. The name implifies that this table stores a list of seller-contacts, how much can change in one day? I tend to believe not that much but off course i cannot look into the tables.

Else you could try to run innodb on the corrupted database and try to dump the sellers table to a file, just give it a chance. How to is described here.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question