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:
@@ -277,6 +277,11 @@ namespace Framework.Database
|
|||||||
args += "--ssl ";
|
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
|
// Execute sql file
|
||||||
args += "-e ";
|
args += "-e ";
|
||||||
args += "\"BEGIN; SOURCE \"" + path + "\"; COMMIT;\" ";
|
args += "\"BEGIN; SOURCE \"" + path + "\"; COMMIT;\" ";
|
||||||
|
|||||||
Reference in New Issue
Block a user