| | |
Problems restoring mysql database backups
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2008
Posts: 24
Reputation:
Solved Threads: 0
Hi,
I tried to restore my decompressed database 'cyberview_db_2809_2009-10-27_17h30m.Tuesday.sql'
using the command :
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.
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
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.
-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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Jun 2008
Posts: 24
Reputation:
Solved Threads: 0
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 :
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?
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
Is it because the backup script is not good enough or what is causing the problem with the backups? Are the database backups corrupted?
•
•
Join Date: Jun 2008
Posts: 24
Reputation:
Solved Threads: 0
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.
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.
-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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- Problems connecting the page with MySql database! (PHP)
- Problems with exporting from a mysql database to a .csv (PHP)
- Problems connecting jsp with MySQL database (JSP)
- MySQL Database Backups (MySQL)
- Setting up a cookie and saving the result in mySQL database (PHP)
Other Threads in the MySQL Forum
- Previous Thread: foreach tutorial
- Next Thread: MySQL Query - Searching for multiple keywords
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql syntax techsupport thunderbird transparency virtualization






