diff --git a/backend/app/services/system_initializer.py b/backend/app/services/system_initializer.py index b9f8a30..fa5d176 100644 --- a/backend/app/services/system_initializer.py +++ b/backend/app/services/system_initializer.py @@ -949,6 +949,7 @@ def backup_mysql_database(settings: object, output_dir: str | Path) -> str: f"--defaults-extra-file={defaults_path}", f"--result-file={backup_path}", "--single-transaction", + "--no-tablespaces", "--routines", "--triggers", database, diff --git a/backend/tests/test_system_initializer_reset.py b/backend/tests/test_system_initializer_reset.py index 21bd3b5..e071600 100644 --- a/backend/tests/test_system_initializer_reset.py +++ b/backend/tests/test_system_initializer_reset.py @@ -194,6 +194,7 @@ class SystemInitializerResetTest(unittest.TestCase): self.assertTrue(backup_path.endswith(".sql")) self.assertEqual(len(commands), 1) + self.assertIn("--no-tablespaces", commands[0]) self.assertFalse(any("secret" in part for part in commands[0])) defaults_arg = next(part for part in commands[0] if part.startswith("--defaults-extra-file=")) self.assertFalse(Path(defaults_arg.split("=", 1)[1]).exists())