Using encryption (new) using MySqlConnection

Connection string

This MySQL Connector/Net connection string can be used for connections to MySQL.

Use SSL if the server supports it, but allow connection in all cases

Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
SslMode
=Preferred;

This option is available from Connector/NET version 6.2.1