diff options
author | Aokromes <Aokromes@users.noreply.github.com> | 2021-08-18 10:16:06 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-13 14:05:23 +0100 |
commit | 0a77534245b31f4091dcecf20b977f69cc02e8be (patch) | |
tree | f634b936ae6535f6327d46738504a53503134c33 | |
parent | bbde3b54b94d4425e0b5800a4884b27f0c7d79cd (diff) |
Core/DB: Updated missing check (#26834)
* Core/DB: Updated missing check
TrinityCore does not support MySQL versions below 5.7, please update your MySQL server
(cherry picked from commit 3c84972a36cf5f621f4b8c052d07c7ede4a78495)
-rw-r--r-- | src/server/database/Database/DatabaseWorkerPool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/database/Database/DatabaseWorkerPool.cpp b/src/server/database/Database/DatabaseWorkerPool.cpp index 7aa1a1e46d1..4ff49812f0b 100644 --- a/src/server/database/Database/DatabaseWorkerPool.cpp +++ b/src/server/database/Database/DatabaseWorkerPool.cpp @@ -39,8 +39,8 @@ #include <boost/stacktrace.hpp> #endif -#define MIN_MYSQL_SERVER_VERSION 50100u -#define MIN_MYSQL_CLIENT_VERSION 50100u +#define MIN_MYSQL_SERVER_VERSION 50700u +#define MIN_MYSQL_CLIENT_VERSION 50700u class PingOperation : public SQLOperation { @@ -58,7 +58,7 @@ DatabaseWorkerPool<T>::DatabaseWorkerPool() _async_threads(0), _synch_threads(0) { WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe."); - WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "TrinityCore does not support MySQL versions below 5.1"); + WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "TrinityCore does not support MySQL versions below 5.7, please update your MySQL server"); WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s id %lu) does not match the version id used to compile TrinityCore (id %u). Search on forum for TCE00011.", mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID); } @@ -386,7 +386,7 @@ uint32 DatabaseWorkerPool<T>::OpenConnections(InternalIndex type, uint8 numConne } else if (connection->GetServerVersion() < MIN_MYSQL_SERVER_VERSION) { - TC_LOG_ERROR("sql.driver", "TrinityCore does not support MySQL versions below 5.1"); + TC_LOG_ERROR("sql.driver", "TrinityCore does not support MySQL versions below 5.7, please update your MySQL server"); return 1; } else |