Search code examples
c++mysqlwinformsc++-cli

Using MySQL and Windows Forms Application C++ CLI


I am using C++ CLI Windows Forms Application and connecting to MySQL database on my system itself.

I would like to know how to make the connection secure between the application and the database.

I am using the following constring for connection.

String^ constring = L"datasource=localhost;port=3306;username=****;password=****; SslMode=Required";

Is my connection secure? Or do I need to do something else as well.

The MySQL Database in Workbench shows it is Standard TCP/IP protocol and No SSL certificate is attached


Solution

  • In the String you have mentioned SSLMode is required then I suppose it should be secure