» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2006, 05:56 AM
Dillan Dillan is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Dillan is on a distinguished road
Default corrupt database.

hi all, i want to develop an application that automate a recovery from a corrupt database. to simulate a corrupt database, i opened .ibd files in a hex editor, and modified the contents with garbage but mysql would not even start.
on modifying the middle of the file, mysql started, and it operated like normal. but on performed a CHECK TABLE, it crashed one time, and also, indicated a corrupt table. what steps would you take to recover data from it? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-24-2006, 06:03 AM
sierra sierra is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 18
sierra is on a distinguished road
Default

Try to restore from backup and replay the binary log or you lose data. Things happen, backup and binary log are the minimum required tools to survive them.

Or use replication i.e. a master and two slave setup. Lets call them A, B and C:

A fails

failover to B

copy data from C to A to recover A without interfering with B

When not involved in failover scenarios, the B and C servers would probably be used for serving queries, to improve performance and get an increased return on the investment.

But replication is not a substitute for backup and binary log. You still need those to recover from DROP TABLE. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
database conversion issue? Akunh MySQL Forums 1 01-17-2007 07:41 AM
database backing up... santiago MySQL Forums 1 10-02-2006 07:27 AM
10,090 Entry Chinese Learning Database klown Sell Internet Services 0 09-07-2006 02:17 PM
DiscountASP.NET Launches SQL Database Transfer Tool outsourcingplans Web Hosting News 0 08-09-2006 04:23 AM
Database Inquiry ?? umbika ASP forums and Tips 2 12-14-2005 05:08 AM


All times are GMT. The time now is 12:34 PM.