mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Database: Fix database auto updater when using MySQL 9.4 (#31243)
(cherry picked from commit 290a7b9310)
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