Try out higher mysql timeouts

This commit is contained in:
def 2020-09-06 21:51:23 +02:00
parent ef9260601e
commit 1fd5c3ebc3

View file

@ -113,9 +113,9 @@ IDbConnection::Status CMysqlConnection::Connect()
connection_properties["port"] = m_Port; connection_properties["port"] = m_Port;
connection_properties["userName"] = sql::SQLString(m_aUser); connection_properties["userName"] = sql::SQLString(m_aUser);
connection_properties["password"] = sql::SQLString(m_aPass); connection_properties["password"] = sql::SQLString(m_aPass);
connection_properties["OPT_CONNECT_TIMEOUT"] = 10; connection_properties["OPT_CONNECT_TIMEOUT"] = 60;
connection_properties["OPT_READ_TIMEOUT"] = 10; connection_properties["OPT_READ_TIMEOUT"] = 60;
connection_properties["OPT_WRITE_TIMEOUT"] = 20; connection_properties["OPT_WRITE_TIMEOUT"] = 120;
connection_properties["OPT_RECONNECT"] = true; connection_properties["OPT_RECONNECT"] = true;
connection_properties["OPT_CHARSET_NAME"] = sql::SQLString("utf8mb4"); connection_properties["OPT_CHARSET_NAME"] = sql::SQLString("utf8mb4");
connection_properties["OPT_SET_CHARSET_NAME"] = sql::SQLString("utf8mb4"); connection_properties["OPT_SET_CHARSET_NAME"] = sql::SQLString("utf8mb4");