Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2013, 11:40 PM
Dirks Dirks is offline
 
Join Date: Jun 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default mySQL question

So I found an old database dump from my forum prior to a crash we had back in 2006.

I thought it would be a neat idea to go through and let other folks see their old posts, but the backup .sql file itself appears corrupted. By compressing the file and decompressing it, I was able to get about 10% of the table information from the file (I check by opening it in Wordpad). Do any of you guys know about any programs I can use to get the rest of the non-corrupted table information out of this file?

Any help is much appreciated.
Reply With Quote
  #2  
Old 08-29-2013, 02:37 AM
nerbert nerbert is offline
 
Join Date: May 2008
Posts: 784
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

phpMyAdmin > Operations > Table Maintenance > Repair Table

Might help. See what happens.
Reply With Quote
  #3  
Old 08-29-2013, 10:11 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When importing a SQL file, if its actually corrupted & repairable, MySQL will fix it automatically itself when you import it, phpmyadmin is useless at this point if you cant import it, so you cant use it to repair a table of a db that dont yet exist.
Reply With Quote
  #4  
Old 08-29-2013, 04:52 PM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how big is file?
Reply With Quote
  #5  
Old 09-04-2013, 01:52 PM
Dirks Dirks is offline
 
Join Date: Jun 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I managed to recover the file using old school methods, but it appears the database dump was incomplete. It got through maybe half the posts on the original save. Since there are no user tables, the database doesn't know what to do. I just get the database error message, even when I start a new vB upload (for the tables) then import the old database in. Quite depressing really.

If anyone has a fix at this point, it's appreciated, but I'm not holding my breath. Thanks everyone for your input.
Reply With Quote
  #6  
Old 09-04-2013, 10:33 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the database is not truncated, then you have to narrow it down to what table is in error. (It can be other things too, but start here.) Once you find the table, post the name of the table and re-ask the question. Basically you have to syntactically parse the table. If the corruption spans multiple tables it gets logarithmically more difficult.

There are companies out there that try to restore databases, if this is really above your head. Do not expect 100% complete restoration. You cannot restore data when you do not know what the original data was suppose to be. Guesses have to be made, based on the model.
Reply With Quote
  #7  
Old 09-06-2013, 12:42 PM
Dirks Dirks is offline
 
Join Date: Jun 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, it would be too much guessing. It basically got through the "P" tables. I can probably guess users based on the posts, but threads would be nigh impossible, I'm afraid.

Thanks for your help.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04160 seconds
  • Memory Usage 2,210KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete