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

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

解决办法:

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

 

Navicat for MySQL连接mysql提示Client does not support authentication protocol requested by server; consider upgrading MySQL client
客户端不支持服务器请求的身份验证协议;考虑升级MySQL客户端

解决办法:

1.升级 Mysql 最新版8.0 2.连接字符修改

 public static string connectionString = @"Server = localhost; port = 3306; pooling = false; Database = agv_mes; uid =root; pwd =1234;Allow User Variables=True"; //Mysql 连接字符

posted @ 2021-07-24 16:07  林新i  阅读(909)  评论(0编辑  收藏  举报