【发布时间】:2021-11-15 04:27:05
【问题描述】:
我在我的 C# netcoreapp2.1 测试项目中依赖于 MySql.Data,我使用它从数据库中查询测试数据,这适用于 v8.0.25,但如果我升级到 v.8.0.26 我得到以下错误(没有任何其他代码更改)。
System.TypeInitializationException : The type initializer for 'Dev.Tests.Foo' threw an exception.
----> MySql.Data.MySqlClient.MySqlException : SSL Connection error.
----> System.AggregateException : One or more errors occurred. (The handshake failed due to an unexpected packet format.)
----> System.IO.IOException : The handshake failed due to an unexpected packet format.
我已尝试在 release notes 中查找此版本中可能已更改的任何内容以执行此操作,但看不到任何明显的内容(无论如何对我来说)。
还有其他人在升级 MySql.Data 时遇到过这个问题吗?
【问题讨论】:
标签: c# mysql mysql.data