From 7465628d95f2608815f07b1f06eca5832d364d1a Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 2 Nov 2020 11:58:21 +0100 Subject: [PATCH] Add --hex-blob to mysqldump --- wo/core/mysql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/core/mysql.py b/wo/core/mysql.py index cdab230..91db071 100644 --- a/wo/core/mysql.py +++ b/wo/core/mysql.py @@ -110,7 +110,7 @@ class WOMysql(): Log.info(self, "Backing up {0} database".format(dbs)) p1 = subprocess.Popen( "/usr/bin/mysqldump {0} --max_allowed_packet=1024M " - "--single-transaction ".format(dbs), + "--single-transaction --hex-blob".format(dbs), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) p2 = subprocess.Popen( @@ -130,7 +130,7 @@ class WOMysql(): Log.info(self, "Backing up all databases") p1 = subprocess.Popen( "/usr/bin/mysqldump --all-databases " - "--max_allowed_packet=1024M " + "--max_allowed_packet=1024M --hex-blob " "--single-transaction --events", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)