Use supported MySQL server configuration keys
This commit is contained in:
@@ -153,8 +153,8 @@ def build_mysql_installer_command(installer_path: Path, log_path: Path) -> list[
|
|||||||
def build_mysql_server_install_command(console_path: Path) -> list[str]:
|
def build_mysql_server_install_command(console_path: Path) -> list[str]:
|
||||||
server = (
|
server = (
|
||||||
f"server;{MYSQL_VERSION};x64:*:"
|
f"server;{MYSQL_VERSION};x64:*:"
|
||||||
"type=config;open_win_firewall=false;tcp_ip=true;port=3306;"
|
"type=main;open_win_firewall=false;tcp_ip=true;port=3306;"
|
||||||
f"root_passwd={MYSQL_INITIAL_ROOT_PASSWORD}"
|
f"rootpasswd={MYSQL_INITIAL_ROOT_PASSWORD}"
|
||||||
)
|
)
|
||||||
return [
|
return [
|
||||||
str(console_path),
|
str(console_path),
|
||||||
|
|||||||
@@ -204,8 +204,11 @@ class InstallerTests(unittest.TestCase):
|
|||||||
|
|
||||||
self.assertEqual(command[0:3], ["MySQLInstallerConsole.exe", "community", "--install"])
|
self.assertEqual(command[0:3], ["MySQLInstallerConsole.exe", "community", "--install"])
|
||||||
self.assertIn("server;8.0.43;x64:*:", command[3])
|
self.assertIn("server;8.0.43;x64:*:", command[3])
|
||||||
self.assertIn(f"root_passwd={MYSQL_INITIAL_ROOT_PASSWORD}", command[3])
|
self.assertIn("type=main", command[3])
|
||||||
self.assertNotIn(f"root_passwd={MYSQL_ROOT_PASSWORD}", 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("--silent", command)
|
||||||
self.assertIn("--auto-handle-prereqs", command)
|
self.assertIn("--auto-handle-prereqs", command)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user