On Wed, Feb 24, 2010 at 7:11 AM, Robert P. J. Day <span dir="ltr"><<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, 24 Feb 2010, Robert P. J. Day wrote:<br>
<br>
> a colleague asks me if there's a way to recover a mysql database<br>
> that was being hosted by someone else and was apparently corrupted<br>
> in ways that are not at all obvious.<br>
><br>
> all the hosting company is providing him with is a tar file of the<br>
> /var/lib/mysql/<db> directory, which consists of nothing but .frm<br>
> files (so it's in innodb format, correct?). they won't give him the<br>
> ibdata1 file or ib log files, for security reasons.<br>
<br>
</div>... snip ...<br>
<br>
one of my first thoughts was whether there's a utility that will<br>
extract from the ibdata1 file and/or the log files *only* the<br>
information that's relevant to this one database. i suspect the<br>
admins at the hosting company could be persuaded to provide *that*,<br>
once they're convinced that that doesn't represent a security issue.<br>
<br></blockquote></div><br clear="all">One more thing about ibdata, they can't be moved from one machine to <br>another and expected to work as is. For MyISAM, it is possible to move<br>.MYI and .MYD and have them work. But for InnoDB, it is not that simple.<br>
<br>Did they try to run mysqldump on his database only?<br><br>InnoDB attempts to recover from corruption automatically when it starts up.<br>Does the logs show anything? If there is corruption, is it for his database only<br>
or for everyone on that machine? I find it hard that only one database is affected.<br><br>MaatKit may give some clues here, but if his host is not releasing the bdata<br>files (perhaps with good reason), there is little he can do about it.<br>
-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>