From c5945340133e69b5877cb12dfeaee1480260b275 Mon Sep 17 00:00:00 2001 From: Igor Matkovic Date: Tue, 23 Aug 2022 13:04:36 -0700 Subject: [PATCH] Add --no-tablespaces to the mysqldump command Fixes dokku/dokku-mysql#140 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 4701d48..3c24067 100755 --- a/functions +++ b/functions @@ -117,7 +117,7 @@ service_export() { [[ -n $SSH_TTY ]] && stty -opost docker exec "$SERVICE_NAME" bash -c "printf '[client]\ndefault-character-set=utf8mb4\npassword=$PASSWORD\n' > /root/credentials.cnf" - docker exec "$SERVICE_NAME" mysqldump --defaults-extra-file=/root/credentials.cnf --user=mysql --single-transaction --quick "$DATABASE_NAME" + docker exec "$SERVICE_NAME" mysqldump --defaults-extra-file=/root/credentials.cnf --user=mysql --single-transaction --no-tablespaces --quick "$DATABASE_NAME" docker exec "$SERVICE_NAME" rm /root/credentials.cnf status=$? [[ -n $SSH_TTY ]] && stty opost