Bug #2392 | Restore of tables with deleted record always reports an error | ||
---|---|---|---|
Submitted: | 14 Jan 2004 15:49 | Modified: | 17 Jan 2004 11:04 |
Reporter: | Shekar Pasumarthi | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S2 (Serious) |
Version: | 4.0 | OS: | |
Assigned to: | CPU Architecture: | Any |
[14 Jan 2004 15:49]
Shekar Pasumarthi
[15 Jan 2004 10:45]
Sergei Golubchik
Unfortunately it cannot be fixed, as it's not a bug per se a but a design problem in BACKUP TABLE. We are making BACKUP TABLE obsolete and introducing a new "online backup" code that is able to backup a table without holding a lock during the backup process (and it doesn't have a bug you reported, of course). Thus, BACKUP TABLE is obsolete and won't be fixed. We'll update the manual about it. Workarounds are - OPTIMIZE TABLE before BACKUP TABLE. Or (better) use mysqlhotbackup script.
[15 Jan 2004 10:55]
Sergei Golubchik
mysqlhotcopy, sorry
[15 Jan 2004 11:15]
Shekar Pasumarthi
is there a mysqlhotcopy for NT/Windows 2000. Also when will the "online backup" be available. Will be available as a fix for 3.23 or will it be online availabe for 4.x
[17 Jan 2004 11:04]
Sergei Golubchik
Unfortunately online backup is hardly to appear before MySQL-5.1. As for mysqlhotcopy, you have two possibilities. 1. mysqlhotcopy is a perl script, you can install perl and all the required modules and it will work. 2. You may do manually what mysqlhotcopy does, that is: - LOCK TABLES table1 READ, table2 READ, ... - FLUSH TABLES table1, table2, ... copy table files, that is table1.MYI, table1.MYD, table1.frm, etc... to a backup directory - UNLOCK TABLES