diff options
author | quarters78 <quarters78@tuta.io> | 2025-08-30 21:02:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-30 21:02:16 +0200 |
commit | 290a7b93107b4864f5aad57b415c9237922e3379 (patch) | |
tree | 8fa816dee1c3260407cf0d2c0645d91fe86491d4 | |
parent | 66a0c6970f20015d1c3d403f98f5913bed654d65 (diff) |
Core/Database: Fix database auto updater when using MySQL 9.4 (#31243)
-rw-r--r-- | src/server/database/Updater/DBUpdater.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/database/Updater/DBUpdater.cpp b/src/server/database/Updater/DBUpdater.cpp index 92325ea4b5e..683d32f3ff4 100644 --- a/src/server/database/Updater/DBUpdater.cpp +++ b/src/server/database/Updater/DBUpdater.cpp @@ -375,6 +375,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") |