See comments inline
> You have exceptions turned off and don't show that you're checking for
> error codes. How do you know that the option was set successfully?
> If you get false back from set_option(), you should turn exceptions on
> and catch the resulting BadOption exception, as it will tell you more
> about what went wrong.
All code is surronded by try block ending with
catch ( std::exception &e )
cerr << e.what();
> It's incorrect to pass options allocated on the stack. Connection
> (DBDriver, actually) needs to control the lifetime of these objects. You
> want to say:
> conn.set_option(new SslOption(...));
changed this part to
if ( !conn.set_option( new mysqlpp::SslOption (pKey.c_str(),
pCert.c_str(), pCA.c_str(), pCApath.c_str(), pCipher.c_str() ) ) )
cerr << "SSL option failed: " << endl;
still connect raises exception SSL connection error.
I'll try 2.x Version of mysqlpp as soon as possible.
For additional info i used ssl key setup from
and mysql from xamp.
thx for kind support so far