Core/Database: Fix database auto updater when using MySQL 9.4 (#31243)

(cherry picked from commit 290a7b9310)
This commit is contained in:
quarters78
2025-08-30 21:02:16 +02:00
committed by Shauren
parent ceb9aed4e2
commit c4b1caeb95

View File

@@ -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")