Core/Database: Fix database auto updater when using MySQL 9.4

Port From (https://github.com/TrinityCore/TrinityCore/commit/c4b1caeb9532f64776e66c5a85fa69fa80c0dfdd)
This commit is contained in:
Hondacrx
2025-09-03 08:35:45 -04:00
parent 3d23a9f162
commit f1f6c4055b
+5
View File
@@ -277,6 +277,11 @@ namespace Framework.Database
args += "--ssl ";
}
// Since MySQL 9.4 command line client commands are disabled by default
// We need to enable them to use `SOURCE` command
if (version.Build >= 9 && version.Major >= 4)
args += "--commands=ON";
// Execute sql file
args += "-e ";
args += "\"BEGIN; SOURCE \"" + path + "\"; COMMIT;\" ";