summaryrefslogtreecommitdiff
path: root/src/server/database/Database
diff options
context:
space:
mode:
authorSkjalf <47818697+Nyeriah@users.noreply.github.com>2023-03-04 17:22:56 -0300
committerGitHub <noreply@github.com>2023-03-04 17:22:56 -0300
commit12e69248f828df95686de00a92aebfa5dbf51c4a (patch)
treee6a1120af7846dcaf90529bd1a23da6d809fc746 /src/server/database/Database
parent0f9a4e15d5f5eb9406f51187d7eecea44723a526 (diff)
chore(Core/DB): Display the SQL client version found when throwing th… (#15266)
Diffstat (limited to 'src/server/database/Database')
-rw-r--r--src/server/database/Database/DatabaseWorkerPool.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/database/Database/DatabaseWorkerPool.cpp b/src/server/database/Database/DatabaseWorkerPool.cpp
index 5a391e0cd9..e320e09037 100644
--- a/src/server/database/Database/DatabaseWorkerPool.cpp
+++ b/src/server/database/Database/DatabaseWorkerPool.cpp
@@ -73,7 +73,8 @@ DatabaseWorkerPool<T>::DatabaseWorkerPool() :
bool isSameClientDB = true; // Client version 3.2.3?
#endif
- WPFatal(isSupportClientDB, "AzerothCore does not support MySQL versions below 5.7 and MariaDB 10.5\nSearch the wiki for ACE00043 in Common Errors (https://www.azerothcore.org/wiki/common-errors#ace00043).");
+ WPFatal(isSupportClientDB, "AzerothCore does not support MySQL versions below 5.7 and MariaDB 10.5\n\nFound version: {} / {}. Server compiled with: {}.\nSearch the wiki for ACE00043 in Common Errors (https://www.azerothcore.org/wiki/common-errors#ace00043).",
+ mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
WPFatal(isSameClientDB, "Used MySQL library version ({} id {}) does not match the version id used to compile AzerothCore (id {}).\nSearch the wiki for ACE00046 in Common Errors (https://www.azerothcore.org/wiki/common-errors#ace00046).",
mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
}
@@ -403,7 +404,8 @@ uint32 DatabaseWorkerPool<T>::OpenConnections(InternalIndex type, uint8 numConne
}
else if (connection->GetServerVersion() < MIN_MYSQL_SERVER_VERSION)
{
- LOG_ERROR("sql.driver", "AzerothCore does not support MySQL versions below 5.7 or MariaDB versions below 10.5");
+ LOG_ERROR("sql.driver", "AzerothCore does not support MySQL versions below 5.7 or MariaDB versions below 10.5.\n\nFound version: {} / {}. Server compiled with: {}.",
+ mysql_get_client_info(), mysql_get_client_version(), MYSQL_VERSION_ID);
return 1;
}
else