mysqldelphisslc++builderdbexpress

Connect to Mysql with TSQLConnection and SSL


I connect to a MySQL database with a TSQLConnection, where I add the needed connection parameters at runtime with SQLConnectionMySQL->Params-Add("..."). This works as it should.

Now I want to connect to the database with SSL. As I understand I need to add the SSL certificate files in the parameter list somehow. But I can not find out how.

Does anyone have an idea how to do this?

(I use C++Builder XE for this project, but I've also got XE6 installed.)

Regards Tomas


Solution

  • The DbExpress MySQL drivers included with Delphi doesn't supports SSL, So you must use a third-party driver like the DBX for MySQL or use FIREDAC.