Bug #37253 | Unable to restore backup file containing BLOBs | ||
---|---|---|---|
Submitted: | 6 Jun 2008 19:57 | Modified: | 7 Jun 2008 7:31 |
Reporter: | darrell duffy | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Administrator | Severity: | S3 (Non-critical) |
Version: | 1.2.12 | OS: | Windows (Vista Ultimate x86 SP1) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Backup, BLOB, restore |
[6 Jun 2008 19:57]
darrell duffy
[6 Jun 2008 21:14]
Peter Laursen
@darell .. you should probably raise the "max_allowed_packet" setting in server configuration! If there is no explicit setting, default with most recent server versions is (as ridiculously low as) 1M. Insert in the configuration file [mysqld] section for instance max_allowed_packet = 100M restart the server and try again. Pretty much a shame that the good old MySQL 3.23 'got a packet too large' error practically never is returned any more. Now we get the meaningless 'gone away' error message! But there is probably nothing wrong with the dump. Only there is an INSERT statement larger than max_allowed_packet, I think! I do not know MA backups too well (I use mysqldump or SQLyog depending on the situation) and do not know if MA uses BULK INSERTS (more than one row of data for every INSERT) or not - or if it is configurable. If it is you can try turning it off or set a lower BULK value. Peter (not a MySQL person)
[7 Jun 2008 2:59]
darrell duffy
Peter, Thanks. That was the problem. I changed the max_allowed_packet to 10M and all is well. I had assumed that the parameters would fail going both ways and that the backup would fail, or queries with OpenOffice would fail if something this fundamental was a problem. The backup was set to only use two records in an INSERT statement. Thanks very much, darrell
[7 Jun 2008 3:01]
darrell duffy
Error message was not clear about why restore failed. Changing max_allowed_packet size to 10M fixed problem of the restore for my database.
[7 Jun 2008 7:31]
Sveta Smirnova
Thank you for the report. Closed as "Not a Bug", because found cause of the problem is not result of a bug.