Problems restoring mysql database backups

Reply

Join Date: Jun 2008
Posts: 24
Reputation: Aigini is an unknown quantity at this point 
Solved Threads: 0
Aigini Aigini is offline Offline
Newbie Poster

Problems restoring mysql database backups

 
0
  #1
31 Days Ago
Hi,

I tried to restore my decompressed database 'cyberview_db_2809_2009-10-27_17h30m.Tuesday.sql'

using the command :

mysql -h localhost -u root -proot123 info < /backups/daily/cyberview_db_2809/cyberview_db_2809_2009-10-27_17h30m.Tuesday.sql
but there was no restoration.

I checked the /var/lib/mysql directory where all restored databases are located, and in the 'info' folder, the only script that was available was 'db.opt'. Nothing else was created.

Why is this? Pls help.

Tqs.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,190
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer
 
-1
  #2
29 Days Ago
Did you created "info" database before importing or you expected to be on sql file processing?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 24
Reputation: Aigini is an unknown quantity at this point 
Solved Threads: 0
Aigini Aigini is offline Offline
Newbie Poster
 
0
  #3
28 Days Ago
I created the 'info' database using phpMyAdmin.

Today, I even tried restoring the database mentioned (which is actually the backup of the original database) using phpMyAdmin.

[ I have been using the automysqlbackup.sh.2.5 to create backups daily using the crontab.]

But the error returned was :

-- Server version 5.0.77
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

MySQL said:
#1065 - Query was empty
But when I create another database, and restore using the original database, I don't have such a problem. So I assume that the problem is in the database backups itself.

Is it because the backup script is not good enough or what is causing the problem with the backups? Are the database backups corrupted?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 24
Reputation: Aigini is an unknown quantity at this point 
Solved Threads: 0
Aigini Aigini is offline Offline
Newbie Poster

Database backup is errorneous/corrupted

 
0
  #4
28 Days Ago
Hi,

I realize that the database that is being backed up daily automatically using automysqlbackup.sh.2.5 are corrupted or has error in it.

I know this because I am unable to restore the backups using neither the command line nor phpMyAdmin.

I am returned with the error : 1065 : Query is empty command when I try to restore.

Pls give me a solution to repair the corrupted backups.

Tqs.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,190
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer
 
-1
  #5
27 Days Ago
I'm not sure, databases are secondary for me as I'm programmer. If you have knowledge of SQL you may try to import back database in chunks of data.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC