4 messages in com.mysql.lists.win32Database Backup restore
FromSent OnAttachments
gretchenl18 Apr 2000 19:04 
sin...@mysql.com19 Apr 2000 04:10 
gretchenl20 Apr 2000 12:03 
sin...@mysql.com21 Apr 2000 05:42 
Subject:Database Backup restore
From:gretchenl (gret@adelphia.net)
Date:04/18/2000 07:04:57 PM
List:com.mysql.lists.win32

I am new to MySQL and I have some questions. I was able to make a backup of the
database using this command

mysqldump --opt --all-databases > backup.sql

Is this the correct way to backup all the databases? It does backup the database but it also gives me this error MYSQLDUMP: got error 1064 : you have an error in your SQL syntax near `` at line
1. Why?

Now I deleted one of the databases from MySQL using mysqladmin drop
<databasename>. Now I wanted to restore my backup to see if this works so I
tried

mysql < backup.sql

but this failed because some of the other tables / databases existed.

If you were going to just restore one database, could you delete all the other
database information out of that backup file and then just restore that?

Thanks Gretchen