Closed (outdated)
Project:
Backup and Migrate
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2017 at 12:39 UTC
Updated:
28 Nov 2025 at 05:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Jorrit commentedBefore:
After:
0x0101000000122cb3ad0b241340794ec46c13ca4940I noticed that destinations.db.mysql.inc and sources.db.mysql.inc have some duplicated code. I only changed sources.db.mysql.inc in the patch. If the solution is acceptable, I will copy the changes to destinations.db.mysql.inc and upload a new patch
The solution also changes how integers are written: when possible, they will not be surrounded with quotes.
Before:
'node','oa_event','0','568','632','und','0','1506668400','1506672000'After:
'node','oa_event',0,568,632,'und',0,1506668400,1506672000If you don't like that, I can remove it. The most important part is the binary data encoding.
Comment #3
Jorrit commentedA better example of what the SQL looks like before this patch.
Comment #4
Jorrit commentedComment #5
RAFA3L commentedThanks Jorrit, I notice this problem with geofield just yesterday importing into another server and discover that Sequel Pro export in hexadecimal too, phpMyAdmin is not good for import/export large databases. For example with this big database when I press GO to export in phpMyadmin download the html of the export page. I'll try the patch.
Comment #6
Leeteq commentedComment #7
damienmckennaThis needs some slight cleaning up to match the Drupal coding standards and comments explaining what's going on. Thanks.
Comment #8
Jorrit commentedDone. Thanks for your attention.
Comment #9
wombatman commentedThank you for this. Geofield data was being incorrectly encoded by Backup and Migrate dump which was corrupting database when restored using MySQL Workbench. Applied the patch and all looks to be working again.
Comment #10
Jorrit commentedThanks for confirming!
Comment #11
damienmckennaRerunning the tests to make sure the patch still works..
Comment #13
Jorrit commentedComment #14
damienmckennaHave you tested restoring an existing backup after this patch is applied?
Comment #15
ivnishDrupal 7 is EOL. This issue will be closed.