Bug #104988 | Connection to MySQL fails when updating NuGet package from 8.0.25 to 8.0.26 | ||
---|---|---|---|
Submitted: | 20 Sep 2021 9:04 | Modified: | 4 Oct 2021 11:56 |
Reporter: | Derek Jackson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 8.0.26 | OS: | Windows (C# using VS 2019) |
Assigned to: | CPU Architecture: | x86 | |
Tags: | NuGet Version 8.0.26 |
[20 Sep 2021 9:04]
Derek Jackson
[20 Sep 2021 9:11]
Derek Jackson
MS VS2019 project with SSL and MySql packages removed
Attachment: MySqlTest.zip (application/x-zip-compressed, text), 45.02 KiB.
[20 Sep 2021 9:14]
Derek Jackson
Project file uploaded. I've had to remove package files to keep the size below 30M Packages removes are :- BouncyCastle.1.8.5 Google.Protobuf.3.14.0 K4os.Compression.LZ4.1.1.11 K4os.Compression.LZ4.Streams.1.1.11 K4os.Hash.xxHash.1.0.6 MySql.Data.8.0.25 SSH.NET.2020.0.1 System.Buffers.4.5.1 System.Memory.4.5.3 System.Numerics.Vectors.4.4.0 System.Runtime.CompilerServices.Unsafe.4.5.2
[3 Oct 2021 14:59]
Bradley Grainger
Since you're already tunneling the DB connection through an (encrypted) SSH connection, you could try adding "SslMode = None" to your connection string; this may avoid the SSL exception you're getting, but shouldn't reduce security at all.
[3 Oct 2021 16:22]
Derek Jackson
Yes, adding SslMode = MySqlSslMode.None to the connection string works for me. Thanks for the solution, Derek Jackson
[4 Oct 2021 11:56]
MySQL Verification Team
Hello Derek Jackson, Thanks for letting us know that you fixed it by adding SslMode to the connection string. Closing the report. Regards, Ashwini Patil