diff --git a/src/database/database.cpp b/src/database/database.cpp index 58412cc3a0c..934197fe8f9 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -42,8 +42,9 @@ bool Database::connect(const std::string* host, const std::string* user, const s bool reconnect = true; mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect); - uint8_t ssl_disabled = 0; - mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_disabled); + // remove ssl verification + bool ssl_enabled = false; + mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_enabled); // connects to database if (!mysql_real_connect(handle, host->c_str(), user->c_str(), password->c_str(), database->c_str(), port, sock->c_str(), 0)) {