aboutsummaryrefslogtreecommitdiff
path: root/src/server/database/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-12-31 13:59:55 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-31 13:59:55 +0100
commit9d060d23c10b9120cd6016b3862703c1407836ee (patch)
tree42fd00fd6b50c2db7968c783b1827ab98e815cc1 /src/server/database/Database/MySQLConnection.cpp
parent9cf7f9a9767beaaf7d8291e27d2f39569d408483 (diff)
DB: Convert databases to utf8mb4
Diffstat (limited to 'src/server/database/Database/MySQLConnection.cpp')
-rw-r--r--src/server/database/Database/MySQLConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/database/Database/MySQLConnection.cpp b/src/server/database/Database/MySQLConnection.cpp
index 6e42fe3a76c..c197850ba11 100644
--- a/src/server/database/Database/MySQLConnection.cpp
+++ b/src/server/database/Database/MySQLConnection.cpp
@@ -98,7 +98,7 @@ uint32 MySQLConnection::Open()
char const* unix_socket;
//unsigned int timeout = 10;
- mysql_options(mysqlInit, MYSQL_SET_CHARSET_NAME, "utf8");
+ mysql_options(mysqlInit, MYSQL_SET_CHARSET_NAME, "utf8mb4");
//mysql_options(mysqlInit, MYSQL_OPT_READ_TIMEOUT, (char const*)&timeout);
#ifdef _WIN32
if (m_connectionInfo.host == ".") // named pipe use option (Windows)
@@ -148,7 +148,7 @@ uint32 MySQLConnection::Open()
// set connection properties to UTF8 to properly handle locales for different
// server configs - core sends data in UTF8, so MySQL must expect UTF8 too
- mysql_set_character_set(m_Mysql, "utf8");
+ mysql_set_character_set(m_Mysql, "utf8mb4");
return 0;
}
else