MySql.Data.MySqlClient.MySqlException:“The host localhost does not support SSL connections.”

解决办法:

mysql连接字符串里面加"SslMode=none"