Use supported MySQL server configuration keys

This commit is contained in:
王鹏
2026-10-09 10:27:22 +08:00
parent b73682412f
commit 46ad9270c7
2 changed files with 7 additions and 4 deletions

View File

@@ -204,8 +204,11 @@ class InstallerTests(unittest.TestCase):
self.assertEqual(command[0:3], ["MySQLInstallerConsole.exe", "community", "--install"])
self.assertIn("server;8.0.43;x64:*:", command[3])
self.assertIn(f"root_passwd={MYSQL_INITIAL_ROOT_PASSWORD}", command[3])
self.assertNotIn(f"root_passwd={MYSQL_ROOT_PASSWORD}", command[3])
self.assertIn("type=main", command[3])
self.assertNotIn("type=config", command[3])
self.assertIn(f"rootpasswd={MYSQL_INITIAL_ROOT_PASSWORD}", command[3])
self.assertNotIn(f"rootpasswd={MYSQL_ROOT_PASSWORD}", command[3])
self.assertNotIn("root_passwd", command[3])
self.assertIn("--silent", command)
self.assertIn("--auto-handle-prereqs", command)