From edeef544d436f62bcac31daec60c31248f549251 Mon Sep 17 00:00:00 2001 From: Chaim Marcus Date: Sun, 29 Mar 2026 20:22:05 +0000 Subject: [PATCH] fix: mysqldump SSL and tablespace errors in snapshot Add --ssl=false and --no-tablespaces flags to handle Docker MySQL connections with self-signed certificates. Co-Authored-By: Claude Opus 4.6 (1M context) --- files/custom/Espo/Modules/DataMigration/Api/Snapshot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/custom/Espo/Modules/DataMigration/Api/Snapshot.php b/files/custom/Espo/Modules/DataMigration/Api/Snapshot.php index de4849a..8f505fa 100644 --- a/files/custom/Espo/Modules/DataMigration/Api/Snapshot.php +++ b/files/custom/Espo/Modules/DataMigration/Api/Snapshot.php @@ -39,7 +39,8 @@ class Snapshot implements Action $dumpFile = $snapshotDir . '/database.sql'; $cmd = sprintf( - 'mysqldump --host=%s --port=%s --user=%s --password=%s --single-transaction --quick %s > %s 2>&1', + 'mysqldump --host=%s --port=%s --user=%s --password=%s' + . ' --ssl=false --no-tablespaces --single-transaction --quick %s > %s 2>&1', escapeshellarg($host), escapeshellarg($port), escapeshellarg($user),