![]() |
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:
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. |
any chance you can just get one large DB backup from your host?
|
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. |
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. |
I am unable to see the missing tables because when restoring the database, I get the following error
Quote:
Quote:
--------------- Added [DATE]1212337375[/DATE] at [TIME]1212337375[/TIME] --------------- Quote:
|
do a search google for zcat.. works like gzip & gunzip
options here.. http://www.esrl.noaa.gov/gmd/hats/in...xman/gzip.html |
Okay, since I am not tech savvy kiril_cvetkov has offered his services :)
I will update him about your suggestion. |
Quote:
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. |
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 :( |
Okay, the database file size is huge.. any other suggestions that can solve the problem ?
|
Your attachments should be stored in the file system then you wouldn't have this problem. Ive had this problem a few times before and it usually consisted of a problem because the attachment table store file data it can really range for what the contents are. If you can get a backup with individual insert statements you should be able to get all the attachments but the ones that contain the problematic data.
|
Quote:
|
Quote:
|
If you were on a dedicated machine before you should have ssh access where you can perform the database back up, and move yourself even if the host only allowed 2GB downloads for whatever reason.
using a command like mysqldump -u mysql_user -p -h localhost > databaseback.sql scp databaseback.sql user@new.server.ip:/home/location/to/store on the old machine If they still dont want to help you out since you're moving. Try to access your old site via ip.add.res.s and move your attachments from the database into the file system using the tools in admincp. Then get a new database dump, and move the attachment folder to your new host. |
Okay, here's an update, as for my old host ,
Quote:
Fortunately, I had a database dump dated Jan 2007, snakes1100 here helped me restore those attachments in the latest database. So though many attachments will go missing, the forum still will function for now. At the end of it, thanks to snakes1100 , my forum is back up and running :) |
Well, this is more of a warning post for users who use dreamhost, i wont post all the details of the situation about this, but i will say this:
His db backup that was incomplete was rather odd looking, it had every table except the 3 required tables for attachments, due to why he changed hosts, i believe dreamhost might of intentionally removed the 3 tables in question from his backup before they sent it to him, seeing as every other table in the two db's existed, it would be kinda hard for the 3 tables in question to not be there if they did a dump via mysql. |
All times are GMT. The time now is 04:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|