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 06-01-2008, 01:45 PM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Database Restore error

Dear community,

My old hosting gave me a database backup dump split in 2 files. The total database is of the size 2.5 gb split in files of 1.5gb and 1 gb.

We concatenated the files with the command

Quote:
cat db.tar.a db.tar.b >> db.tar
After unpacking the .sql file and importing it, we got the following error


ERROR at line 5804: Unknown command '\"'.

When checking in the tables phpmyadmin, the attachment tables which are the most important part of the site are missing.

Please guide as to how to go about solving this issue.
Reply With Quote
  #2  
Old 06-01-2008, 02:40 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance you can just get one large DB backup from your host?
Reply With Quote
  #3  
Old 06-01-2008, 02:46 PM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NO, unfortunately the old host has said that they have sent the final database split in 2 files and thats about it

they have a http download limit of 2 gb and hence the 2 files split. I emailed them, but they replied negative.
Reply With Quote
  #4  
Old 06-01-2008, 03:13 PM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the missing tables.. are they in either of the two backup files and what did they split the file with?. or did they just select parts of the database for each file?..

--------------- Added [DATE]1212337097[/DATE] at [TIME]1212337097[/TIME] ---------------

maybe also try zcat.
Reply With Quote
  #5  
Old 06-01-2008, 03:21 PM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am unable to see the missing tables because when restoring the database, I get the following error
Quote:
ERROR at line 5804: Unknown command '\"'.
I am assuming that the attachment tables are missing because of this error.

Quote:
did they just select parts of the database for each file?..
No, they dumped the whole database.

--------------- Added [DATE]1212337375[/DATE] at [TIME]1212337375[/TIME] ---------------

Quote:
maybe also try zcat.
please elaborate.
Reply With Quote
  #6  
Old 06-01-2008, 03:28 PM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do a search google for zcat.. works like gzip & gunzip

options here..
http://www.esrl.noaa.gov/gmd/hats/in...xman/gzip.html
Reply With Quote
  #7  
Old 06-01-2008, 03:36 PM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, since I am not tech savvy kiril_cvetkov has offered his services

I will update him about your suggestion.
Reply With Quote
  #8  
Old 06-01-2008, 03:45 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kartik786 View Post
NO, unfortunately the old host has said that they have sent the final database split in 2 files and thats about it

they have a http download limit of 2 gb and hence the 2 files split. I emailed them, but they replied negative.
That sucks, i can't beleive they wouldn't even let you use SSH to transfer a site/db that is so large.

You'll have to put the two files together using the method you already tried, then open up the .sql file that results go to line 5804 and see what it says.
Reply With Quote
  #9  
Old 06-01-2008, 03:51 PM
kiril_cvetkov's Avatar
kiril_cvetkov kiril_cvetkov is offline
 
Join Date: Jul 2007
Location: Macedonia/Kratovo
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the database is more then 2gb in 2 parts.. the attachment table is the main table (takes the most of the space).. i try to fix.. but it's a huge thing..
I can't help
Reply With Quote
  #10  
Old 06-01-2008, 04:04 PM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, the database file size is huge.. any other suggestions that can solve the problem ?
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 04:50 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.04630 seconds
  • Memory Usage 2,252KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete