Bug #17333 Can't restore from backup files
Submitted: 12 Feb 2006 23:25 Modified: 13 Feb 2006 16:17
Reporter: Mitch Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S1 (Critical)
Version:1.1.8 OS:Windows (Windows 2000 Professional)
Assigned to: Alfredo Kojima CPU Architecture:Any

[12 Feb 2006 23:25] Mitch Smith
Description:
Using a fresh install of MySql-5.0.18, with non transactional databases: default configuration.

Created a backup of a schema (containing myisam tables), no errors reported during backup.  However, restoring the backup fails, and "Analyze backup file content" fails.

How to repeat:
Backup any database containing myisam tables.

Backup options:Lock all tables, Complete Inserts (ticked), Comments (ticked), ANSI Quotes (ticked)

Suggested fix:

Problem seems to be in this line...
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZEROANSI_QUOTES' */;

When a comma is manually inserted between NO_AUTO_VALUE_ON_ZERO and ANSI_QUOTES, the restore succeeds...
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI_QUOTES' */;
[13 Feb 2006 12:26] MySQL Verification Team
Thank you for the bug report I was able to repeat with
1.1.8 (1.1.7 not presented this issue).
[13 Feb 2006 16:17] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html