mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/Database: Fix database auto updater when using MySQL 9.4 (#31243)
(cherry picked from commit 290a7b93107b4864f5aad57b415c9237922e3379)
This commit is contained in:
@@ -407,6 +407,14 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
|
||||
if (ssl == "ssl")
|
||||
args.emplace_back("--ssl-mode=REQUIRED");
|
||||
|
||||
#if MYSQL_VERSION_ID >= 90400
|
||||
|
||||
// Since MySQL 9.4 command line client commands are disabled by default
|
||||
// We need to enable them to use `SOURCE` command
|
||||
args.emplace_back("--commands=ON");
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
if (ssl == "ssl")
|
||||
|
||||
Reference in New Issue
Block a user