Page MenuHomePhabricator

Use --hex-blob flag in bin/storage dump
ClosedPublic

Authored by Firehed on Feb 6 2015, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 2:14 AM
Unknown Object (File)
Thu, Apr 11, 9:27 AM
Unknown Object (File)
Fri, Mar 29, 10:31 PM
Unknown Object (File)
Mar 14 2024, 12:22 AM
Unknown Object (File)
Feb 26 2024, 8:06 AM
Unknown Object (File)
Feb 17 2024, 1:03 AM
Unknown Object (File)
Feb 13 2024, 2:25 AM
Unknown Object (File)
Feb 9 2024, 5:45 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Commits
Restricted Diffusion Commit
rP28b23fd789dc: Use --hex-blob flag in bin/storage dump
Summary

mysqldump output can end up having weird encoding issues when raw BLOBs are in the output, preventing the backup restoration from succeeding. This hex-encodes blobs in the dump from the backup workflow causing the output file to only contain ASCII and ensure imports are successful.

Test Plan

Had issues restoring a backup from the original mysqldump command issued by this workflow. Ran the same command with this flag added and I was able to restore the backup.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Firehed retitled this revision from to Use --hex-blob flag in bin/storage dump.
Firehed updated this object.
Firehed edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Cool. We compress these anyway (and advise compression) and it looks like this has been around since at least MySQL 5.0, so this should strictly produce less-error-prone dumps.

This revision is now accepted and ready to land.Feb 6 2015, 8:44 PM
This revision was automatically updated to reflect the committed changes.