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)
Sat, Jan 18, 8:07 AM
Unknown Object (File)
Mon, Jan 13, 2:51 PM
Unknown Object (File)
Mon, Jan 6, 1:03 PM
Unknown Object (File)
Sun, Dec 22, 1:32 PM
Unknown Object (File)
Dec 17 2024, 6:33 AM
Unknown Object (File)
Dec 17 2024, 3:37 AM
Unknown Object (File)
Dec 13 2024, 1:32 PM
Unknown Object (File)
Dec 10 2024, 6:43 PM
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.