Solved

MySQL Restore: Seeing error in logs.  IBData1

Posted on 2013-01-27
1
418 Views
Last Modified: 2013-04-04
Hi Experts,

We had a DB corrupted by a power outage.  MySQL wouldn't start without a force recovery so I thought no big deal, I'll just restore from the latest backup.  It happened overnight where no one would have likely been accessing the DB anyway.

So I restored from the latest backup and am checking the mysql log file and here is what I see over and over again:

130127 10:35:05  InnoDB: Error: page 21007 log sequence number 3 1509081591
InnoDB: is in the future! Current system log sequence number 0 827660907.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html
InnoDB: for more information.


Everything is working fine on the site or appears to be.  After searching around I see that this might be caused from a corrupt ibdata1 file.  However ever, every post I see is people having issues where MySQL won't start.  For me it is working fine so far.

Is this something I need to be concerned with?  If so, how do I fix it?  We do not have a backup of the ibdata1 file.

Thanks
G
0
Comment
Question by:GMoney99
1 Comment
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
Comment Utility
I don't know if you need to be concerned but if you want peace of mind you can just recreate your ibdata1 by:

1. Do a mysqldump of all databases, procedures, triggers etc
2. Drop all databases except the mysql database
3. Stop mysql
4. Delete ibdata1 and ib_log files
5. Start mysql - this will recreate the ibdata1 and ib_log files
6. Restore your database from the dump

Hope this helps
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now