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);

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872541

Title:
  MySQL client fails to connect, seems to force SSL

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-notes/+bug/1872541/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to