I found a workaround for C++ when I don't want to use certificates:
sql::Driver *driver; sql::ConnectOptionsMap connection_properties; sql::Connection *con;
connection_properties["hostName"] = host; connection_properties["userName"] = username; connection_properties["password"] = password; connection_properties["schema"] = dbname; connection_properties["port"] = port; connection_properties["OPT_RECONNECT"] = true; connection_properties["CLIENT_COMPRESS"] = true; connection_properties["OPT_SSL_MODE"] = sql::SSL_MODE_DISABLED;
con = driver->connect(connection_properties);
I found a workaround for C++ when I don't want to use certificates:
sql::Driver *driver; tionsMap connection_ properties;
sql::ConnectOp
sql::Connection *con;
connection_ properties[ "hostName" ] = host; properties[ "userName" ] = username; properties[ "password" ] = password; properties[ "schema" ] = dbname; properties[ "port"] = port; properties[ "OPT_RECONNECT" ] = true; properties[ "CLIENT_ COMPRESS" ] = true; properties[ "OPT_SSL_ MODE"] = sql::SSL_ MODE_DISABLED;
connection_
connection_
connection_
connection_
connection_
connection_
connection_
con = driver- >connect( connection_ properties) ;