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)
Sun, May 4, 9:11 AM
Unknown Object (File)
Apr 26 2025, 11:10 AM
Unknown Object (File)
Apr 25 2025, 2:31 AM
Unknown Object (File)
Apr 10 2025, 12:44 AM
Unknown Object (File)
Mar 25 2025, 9:50 PM
Unknown Object (File)
Mar 20 2025, 2:39 PM
Unknown Object (File)
Mar 10 2025, 2:07 PM
Unknown Object (File)
Feb 8 2025, 2:28 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.