c#连接MySQL显示SSL Authentication Error错误处理

C#连接MySQL数据库时,提示SSL Authentication Error连接失败。
排除方法,在连接字符串中添加SslMode=none;AllowPublicKeyRetrieval=True;即可。

string conStr = string.Format($"Server=192.168.100.15;Database=数据库名称;User ID=用户名称;Password=登录密码;SslMode=none;AllowPublicKeyRetrieval=True;");

你可能感兴趣的:(C#,mysql,ssl,数据库)