语言:C#
开发工具:Visual Studio 2017

问题场景介绍:
nuget引用的MySql.Data版本是6.10.5,MySQL的数据库连接串如下:

Server=xxx;Database=xxx;User=xxx;Password=xxx;Port=3306;CharSet=utf8;Allow User Variables=True

可以正常访问MySQL数据库

更新nuget,MySql.Data版本是8.0.11,报错The host xxx does not support SSL connections.

解决方案:连接字符串添加SslMode=none;
修改后的数据库连接串如下:

Server=xxx;Database=xxx;User=xxx;Password=xxx;Port=3306;CharSet=utf8;Allow User Variables=True;SslMode=none;

相关文章:

  • 2022-02-26
  • 2022-02-19
  • 2021-04-06
  • 2021-08-20
  • 2022-01-04
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-17
  • 2021-08-11
  • 2022-12-23
  • 2021-07-23
相关资源
相似解决方案