From f16aad0ad4b3012fc36719578efb9b8ece5a34e6 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 3 Jan 2021 03:14:06 +0100 Subject: chore(MySQL): Deprecate 5.6 (#4070) --- src/common/Database/DatabaseWorkerPool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common/Database/DatabaseWorkerPool.cpp') diff --git a/src/common/Database/DatabaseWorkerPool.cpp b/src/common/Database/DatabaseWorkerPool.cpp index 8e7c822172..95f32a875c 100644 --- a/src/common/Database/DatabaseWorkerPool.cpp +++ b/src/common/Database/DatabaseWorkerPool.cpp @@ -7,8 +7,8 @@ #include "DatabaseWorkerPool.h" #include "DatabaseEnv.h" -#define MIN_MYSQL_SERVER_VERSION 50600u -#define MIN_MYSQL_CLIENT_VERSION 50600u +#define MIN_MYSQL_SERVER_VERSION 50700u +#define MIN_MYSQL_CLIENT_VERSION 50700u template DatabaseWorkerPool::DatabaseWorkerPool() : _mqueue(new ACE_Message_Queue(2 * 1024 * 1024, 2 * 1024 * 1024)), @@ -18,7 +18,7 @@ template DatabaseWorkerPool::DatabaseWorkerPool() : _connections.resize(IDX_SIZE); WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe."); - WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "AzerothCore does not support MySQL versions below 5.6"); + WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "AzerothCore does not support MySQL versions below 5.7"); } template @@ -37,7 +37,7 @@ bool DatabaseWorkerPool::Open(const std::string& infoString, uint8 async_thre T* t = new T(_queue, _connectionInfo); res &= t->Open(); if (res) // only check mysql version if connection is valid - WPFatal(mysql_get_server_version(t->GetHandle()) >= MIN_MYSQL_SERVER_VERSION, "AzerothCore does not support MySQL versions below 5.6"); + WPFatal(mysql_get_server_version(t->GetHandle()) >= MIN_MYSQL_SERVER_VERSION, "AzerothCore does not support MySQL versions below 5.7"); _connections[IDX_ASYNC][i] = t; ++_connectionCount[IDX_ASYNC]; -- cgit v1.2.3