We do database dumps of Shopware 6 databases. The system stores UUIDs in binary(16) fields.
Now when dumping databases with the --hex-blob option, the data columns are written properly as hex (0x12345....) but we saw that default values are still binary data (see cms_page_version_id)
CREATE TABLE `category` (
`id` binary(16) NOT NULL,
`version_id` binary(16) NOT NULL,
`auto_increment` int(11) NOT NULL AUTO_INCREMENT,
`parent_id` binary(16) DEFAULT NULL,
`parent_version_id` binary(16) DEFAULT NULL,
`media_id` binary(16) DEFAULT NULL,
`cms_page_id` binary(16) DEFAULT NULL,
`cms_page_version_id` binary(16) NOT NULL DEFAULT '^O©^\ãéjK¾KÙÎu,4%',
`product_stream_id` binary(16) DEFAULT NULL,
We use this version:
$ mysqldump --version
mysqldump Ver 10.19 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64)
Is there an option of mysqldump to export also defaults as hex?
If we edit the dumps and save it with vi, the binary data is scrambled.