Problem with restoring database

Scolpy

Verified User
Joined
Feb 25, 2009
Messages
115
Hello!

I'd a problem when I tried to restore database from backup(that created via Create/Restore Backups tool) - I got this message at the restoring:

Unable to restore database database_name.sql to database_name : ERROR 1064 (42000) at line 1 in file: '/home/username/backups/backup/database_name.sql': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Warning: The option '--all' is deprecated and will be removed in a future releas' at line 1

Ho can I resolve this problem?

Thanks!

Yonatan :)
 
Hello,

The fix has nothing to do with restores. It only related to creating backups without the warning in them.

If you can, create the backup again using the new binaries.

If you can't create new backups, then you'll have to manually extract the tar.gz files to edit the sql files, remove the warning, then recompress.

John
 
In some cases, as I've written previously, you can just copy over the individual mysql database files, if you still have access to them.

Jeff
 
Hello,

The fix has nothing to do with restores. It only related to creating backups without the warning in them.

If you can, create the backup again using the new binaries.

If you can't create new backups, then you'll have to manually extract the tar.gz files to edit the sql files, remove the warning, then recompress.

John

Well,

I will not post the words I have just been screaming over here behind my pc but this is really bad.. Well that will be a nice night manually editing over 150+ tar files....

Was it really not possible to prevent me (as a customer) to get in this situation?
 
Back
Top