Skip to content

Bump MySqlConnector from 2.1.4 to 2.6.1 - #7

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/tests/ADO.Net.Client.Implementation.Tests/MySqlConnector-2.6.1
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/tests/ADO.Net.Client.Implementation.Tests/MySqlConnector-2.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 3, 2026

Copy link
Copy Markdown

Updated MySqlConnector from 2.1.4 to 2.6.1.

Release notes

Sourced from MySqlConnector's releases.

2.6.1

  • Fix GHSA-473q-m89c-ghf8: MitM password disclosure in zero-configuration TLS mode.
  • Fix MySqlCommand.Prepare with INSERT INTO ... RETURNING: #​1652.
  • Thanks to @​rusher for contributions to this release.

2.6.0

  • Add opt-in stable OpenTelemetry semantic conventions: #​1435.
    • In MySqlConnector 3.0, the experimental conventions will be removed.
    • Applications should set OTEL_SEMCONV_STABILITY_OPT_IN to database or database/dup (or use WithSemanticConventionsKinds) to test the new semantic conventions.
  • Support distributed tracing by sending traceparent to MySQL Server: #​1635.
  • EnableResultSetHeaderEvent is now opt-in: #​1633.
  • Move AddMySqlDataSource and related APIs from MySqlConnector.DependencyInjection to MySqlConnector: #​1649.
  • Improve reliability and correctness of parameter parsing and rewriting:
    • Fix termination of quoted parameters: #​1627.
    • Handle all comment-start characters during SQL parsing: #​1624.
    • Add stricter argument validation and checks: #​1632.
  • Improve XA and transaction handling:
    • Handle more XA error codes: #​1631.
    • Clear transaction when closing a database: #​1623.
    • Handle missing transaction in DoCloseAsync: #​729.
  • Improve data type handling:
    • Reject negative DATETIME ticks: #​1630.
    • Don't detect BINARY columns as Guid: #​1625.
  • Improve exception safety: #​1628.
  • Suppress trimming warnings and update AOT test coverage: #​1607, #​1608.
  • Thanks to @​markus456 and @​sbomer for contributions to this release.

2.5.0

2.5.0

  • Support .NET 10: #​1595.
  • Possibly breaking MySqlConnection.State will be set to ConnectionState.Broken when there is a network error: #​1599.
    • Previously it would have been set to ConnectionState.Closed but the connection wasn't truly closed.
    • Call MySqlConnection.Close() to fully close the connection before calling Open() again.
    • Better yet, call .Dispose() (ideally with a using declaration) and create a new MySqlConnection instance to recover from failure.
  • Possibly breaking MySqlConnection.ResetConnectionAsync will consistently throw a MySqlException: #​1602.
  • Implement MariaDB PARSEC authentication: #​1540, #​1606.
  • Support the VECTOR data type: #​1549.
  • Implement COM_STMT_SEND_LONG_DATA to stream large parameter values: #​943.
  • Add MySqlConnectorTracingOptions and builder APIs to configure tracing output: #​1524.
  • Read Guid values from stored procedure out parameters: #​1528.
  • Mark MySqlDbType with [DbProviderSpecificTypeProperty(true)]: #​1557.
  • Allow loopback connections (e.g., Google Cloud SQL Proxy) to use clear-text password or public key retrieval: #​1534, #​1542.
  • Improve schema metadata with MariaDB by reading stored procedure metadata from mysql.proc: #​1547.
  • Improve XA transaction rollback handling: #​1585, #​1589.
  • Free large cached payload buffers when returning sessions to the pool to reduce memory usage: #​1587.
  • Suppress error-level logging when a command is canceled: #​1544.
  • Fix MySqlBulkCopy auto-detected column mappings: #​1568.
  • Fix Foreign Keys schema SQL syntax: #​1601.
  • Fix extra roundtrip for caching_sha2_password: #​1562.
  • Fix cancellation with AWS RDS Proxy: #​1581.
  • Optimization: Use System.Threading.Lock for .NET 9.0+.
  • Optimization: Use PemEncoding in .NET 5.0+ and UTF-8 methods in .NET 10.0+.
  • Thanks to @​djeman, @​jnoordsij, @​NETSphereSoft, @​PatrickMNL, @​petedishman, and @​rusher for contributions to this release.

2.5.0-beta.1

2.5.0 Beta 1

  • Support .NET 10: #​1595.
  • Possibly breaking MySqlConnection.State will be set to ConnectionState.Broken when there is a network error: #​1599.
    • Previously it would have been set to ConnectionState.Closed but the connection wasn't truly closed.
    • Call MySqlConnection.Close() to fully close the connection before calling Open() again.
    • Better yet, call .Dispose() (ideally with a using declaration) and create a new MySqlConnection instance to recover from failure.
  • Possibly breaking MySqlConnection.ResetConnectionAsync will consistently throw a MySqlException: #​1602.
  • Implement MariaDB PARSEC authentication: #​1540.
  • Support the VECTOR data type: #​1549.
  • Implement COM_STMT_SEND_LONG_DATA to stream large parameter values: #​943.
  • Add MySqlConnectorTracingOptions and builder APIs to configure tracing output: #​1524.
  • Read Guid values from stored procedure out parameters: #​1528.
  • Mark MySqlDbType with [DbProviderSpecificTypeProperty(true)]: #​1557.
  • Allow loopback connections (e.g., Google Cloud SQL Proxy) to use clear-text password or public key retrieval: #​1534, #​1542.
  • Improve schema metadata with MariaDB by reading stored procedure metadata from mysql.proc: #​1547.
  • Improve XA transaction rollback handling: #​1585, #​1589.
  • Free large cached payload buffers when returning sessions to the pool to reduce memory usage: #​1587.
  • Suppress error-level logging when a command is canceled: #​1544.
  • Fix MySqlBulkCopy auto-detected column mappings: #​1568.
  • Fix Foreign Keys schema SQL syntax: #​1601.
  • Fix extra roundtrip for caching_sha2_password: #​1562.
  • Fix cancellation with AWS RDS Proxy: #​1581.
  • Optimization: Use System.Threading.Lock for .NET 9.0+.
  • Optimization: Use PemEncoding in .NET 5.0+ and UTF-8 methods in .NET 10.0+.
  • Thanks to @​djeman, @​jnoordsij, @​NETSphereSoft, @​PatrickMNL, @​petedishman, and @​rusher for contributions to this release.

2.4.0

  • Support .NET 9.0.
  • Possibly breaking Mark MySqlConnectorLogManager.Provider as [Obsolete]: #​1397.
  • Possibly breaking Remove end-of-life .NET 7 target framework.
    • Users who wish to use DbDataSource need to target .NET 8.0 or later.
  • Possibly breaking Update dependencies:
    • Microsoft.Extensions.Logging.Abstractions from 7.0.1 to 8.0.2.
    • System.Diagnostics.DiagnosticSource from 7.0.2 to 8.0.1.
  • Support trimming and native AOT: #​1265.
  • Add MySqlDataSourceBuilder.UseConnectionOpenedCallback: #​1508.
  • Add MySqlDbColumn.TableName: #​1521.
  • Support zero-configuration SSL with MariaDB: #​1500.
  • Support SET data type in functions: #​1491.
  • Remove TABLESPACES schema: #​1477.
  • Rewrite server redirection logic based on latest MariaDB specification: #​1499.
  • Change variable name for better server compatibility: #​1502.
  • Performance: Avoid SET NAMES commands when not necessary: #​1497.
  • Fix "Can't replace active reader": #​1469.
  • Fix potential NullReferenceException in MySqlConnection.Cancel: #​1506.
  • Fix InvalidOperationException in FinishQuerying: #​1341.
  • Provide logger to new MySqlConnection: #​1510.
  • Use correct hostname when cancelling query: #​1514.
  • Thanks to @​AlexKerman and @​rusher for contributions to this release.

2.4.0-beta.2

  • Remove end-of-life .NET 7 target framework.
    • Users who wish to use DbDataSource need to target .NET 8.0 or later.
  • Fix "Can't replace active reader": #​1469.
  • Update dependencies:
    • Microsoft.Extensions.Logging.Abstractions from 7.0.1 to 8.0.2.
    • System.Diagnostics.DiagnosticSource from 7.0.2 to 8.0.1.

2.4.0-beta.1

  • Support .NET 9.0.
  • Support zero-configuration SSL with MariaDB: #​1500.
  • Add MySqlDataSourceBuilder.UseConnectionOpenedCallback: #​1508.
  • Rewrite server redirection logic based on latest MariaDB specification: #​1499.
  • Support SET data type in functions: #​1491.
  • Performance: Avoid SET NAMES commands when not necessary: #​1497.
  • Fix potential NullReferenceException in MySqlConnection.Cancel: #​1506.
  • Provide logger to new MySqlConnection: #​1510.
  • Use correct hostname when cancelling query: #​1514.
  • Remove TABLESPACES schema: #​1477.
  • Change variable name for better server compatibility: #​1502.
  • Thanks to @​rusher for contributions to this release.

2.3.7

  • Fix NullReferenceException in MySqlDataReader.ActivateResultSet and MySqlDataReader.DisposeAsync: #​1459.
    • This bug likely also caused "Packet received out-of-order" errors.
    • This was introduced in 2.3.0.
  • Fix rare NullReferenceException in ServerSession during cancellation: #​1472.
  • Fix Foreign Keys schema not being generated asynchronously.

2.3.6

  • Fix VerifyCA incompatibility with AWS Aurora: #​1462.
  • Verify that the server's root certificate is present (in the list of provided CA certificates) when using the SslCa connection string option and SslMode is VerifyCA or VerifyFull.
  • Optimization: Use pipelining to begin a transaction: #​1286.
    • Use Pipelining = False; in your connection string to disable this optimization if there are compatibility issues.
  • Optimization: cache START TRANSACTION payloads.
  • Add transaction logging: #​1411.
  • Fix incompatibility with MySQL Server 5.1: #​1445.
    • This fixes a regression introduced in 2.3.0.
  • Thanks to @​CRC32EX, @​dlenski, and @​rbanks54 for documentation contributions in this release.

2.3.5

  • DLL files within the NuGet packages are now digitally signed.
  • Thanks to Devolutions for sponsoring this change.

2.3.4

  • Unify Application Name connection string option and MySqlDataSourceBuilder.UseName: #​1434.
  • Remove TLS version fallback code: #​1409.
  • Fix ArgumentOutOfRangeException in TimerQueue.Add: #​1424.
  • Fix InvalidCastException when using stored procedures with MySQL 5.0: #​1431.
  • Fix hang when disposing MySqlDataSource twice on .NET Framework.
  • Thanks to @​SolacomYongYao for contributions to this release.

2.3.3

  • Support COLUMN_NAME restriction for IndexColumns schema; this improves NHibernate compatibility.

2.3.2

  • Add Foreign Keys, Indexes, Index Columns schemas: #​1419.
  • Fix exception when server doesn't send expected metadata: #​1398.
  • Clear activity tags when retrying TLS: #​1405.
  • Use underlying enum type when writing binary parameters: #​1421.
  • Avoid retrying TLS negotiation when a non-recoverable exception occurs.
  • Thanks to @​daebo01, @​eaexo, and @​trejjam for contributions to this release.

2.3.1

MySqlConnector

  • Add db.client.connections.timeouts counter to metrics: #​1392.
  • Allow empty schemaRestrictions array to be passed to GetSchema: #​1394.
  • Use higher-resolution timestamps for duration metrics: #​1395.
  • Possibly Breaking Use seconds as the units for duration metrics; change type to double: #​1396.
  • Thanks to @​Thorium for contributions to this release.

MySqlConnector.DependencyInjection

  • Add AddKeyedMySqlDataSource to support keyed services: #​1391.
  • Update Microsoft.Extensions.DependencyInjection.Abstractions dependency to 8.0.0.

2.3.0

  • Support .NET 8.0.
    • Mark some serialization APIs as [Obsolete].
    • Implement DbBatchCommand.CreateParameter: #​1352.
    • Optimizations: Use IUtf8SpanFormattable, Ascii.FromUtf16, Guid(bigEndian: true) constructor, argument-throwing helpers, etc.
  • Support .NET Framework 4.8 (net48) TFM: #​1355.
    • This allows TlsVersion = TLSv1.3 to be used on .NET Framework 4.8.
  • Drop support for .NET 4.6.1 and .NET Core 3.1: #​636, #​1273.
    • .NET 4.6.1 support ended on 26 April 2022, and .NET Core 3.1 on 13 December 2022.
    • The minimum supported versions are now .NET Framework 4.6.2 and .NET 6.0, although other frameworks should be supported via netstandard2.0.
  • MySqlDataSource is now available for all TFMs, not just .NET 7.0: #​1269.
    • This provides a single place to configure a MySQL connection and makes it easier to register MySqlConnection with dependency injection.
    • Add MySqlDataSourceBuilder class to configure MySqlDataSource instances.
    • Add MySqlDataSource.Name and MySqlDataSourceBuilder.UseName.
  • Microsoft.Extensions.Logging is now used as the core logging abstraction: #​1110.
    • MySqlConnectorLogManager.Provider can still be used to add a logging destination, but it is now deprecated.
    • Use MySqlDataSourceBuilder.UseLoggerFactory to configure logging.
  • Add new MySqlConnector.DependencyInjection package: #​1271.
    • MySqlDataSource and MySqlConnection can be registered with dependency injection by using builder.Services.AddMySqlDataSource(connectionString).
    • This also configures logging automatically.
  • Expose connection pool metrics: #​491.
  • Remove COM_MULTI protocol support: #​946.
  • Support ZEROFILL columns in MySqlDecimal: #​1354.
  • Support higher-precision DateTime values: #​1379.
  • Use ValueTask in MySqlBulkCopy API for all TFMs: #​1364.
    • Breaking This changes the return type of WriteToServerAsync from Task<MySqlBulkCopyResult> to ValueTask<MySqlBulkCopyResult> on .NET Framework
  • Support skipping metadata for prepared statements with MariaDB 10.6 and later: #​1301.
  • Support multiple authentication methods when connecting: #​1303.
  • Support per-query variables for CommandBehavior.SchemaOnly and SingleRow: #​1312.
  • Recycle MySqlDataReader objects: #​1277.
  • Perform XA rollback when preparing a transaction fails: #​1348.
  • Implement faster parsing for result sets with multiple rows: #​1330.
  • Optimize parameter encoding for ASCII strings: #​1296.
  • Use TcpClient.ConnectAsync overload with CancellationToken on .NET 5.0 and later: #​1291.
  • Fix cancellation when using a redirected connection: #​1305.
  • Fix MySqlConnection.CloneWith for connections created from a MySqlDataSource: #​1306.
  • Work around ephemeral PEM bug on Windows: #​1278.
  • Reduce allocations on common code paths.
  • Fix bug when column name begins with @ in MySqlBulkCopy: #​1365.
  • Ignore MySqlDbType when serializing enum values: #​1384.
  • Fix bug that didn't copy MySqlDataSource in MySqlConnection.Clone: #​1267.
  • Fix version parsing for MariaDB 11.0 and later: #​1311.
  • Fix potential error in reallocating an internal buffer when writing ASCII text.
  • Update handling of ActivityStatus to latest conventions: #​1334.
  • Reduce overhead of CommandTimeout: #​1338.
  • Reword end-of-stream message to be more generic: #​1383.
  • Thanks to @​gboucher90, @​JackBOBO, @​Kielek, @​rusher, and @​stilettk for contributions to this release.

2.2.7

  • Respect ConnectTimeout when resetting connection: #​1321.
  • Prevent connection pool falling back to an unsupported TLS version: #​1349.

2.2.6

  • Ignore deadlock exception when rolling back an XA transaction: #​1317.
  • Work around ephemeral PEM bug on Windows: #​1278.
  • Support new MariaDB version numbers: #​1259.
  • Thanks to @​rusher for contributions to this release.

2.2.5

  • Add support for DECIMAL UNSIGNED, fixing error in DeriveParameters: #​1272.
  • Fix parsing nan as float/double value on .NET Framework.

Full Changelog: mysql-net/MySqlConnector@2.2.4...2.2.5

2.2.4

2.2.3

  • Avoid renormalizing parameter names when executing a prepared command: #​1252.
  • Fix "Unknown column SRS_ID" error in GetSchema: #​1258.
  • Use a standardized value for the TableName property of the DataTable returned from GetSchema.
  • Minor performance improvements.
    • Remove FormatInvariant internal helper method: #​1253.
    • Eliminate temporary byte array when getting real server version.
  • Thanks to @​neuecc for contributions to this release.

2.2.2

  • Fix memory leak when initializing a TLS connection: #​1247.
  • Fix failure to dispose objects if an exception is thrown when connecting: #​1248.

Full Changelog: mysql-net/MySqlConnector@2.2.1...2.2.2

2.2.1

  • Fix failure to load client SSL private key files: #​1242.
    • Builds for .NET 6.0 and later were not affected.

2.2.0

  • Support .NET 7.0.
    • Add MySqlDataSource, an implementation of DbDataSource for MySQL: #​1208.
    • Use source-generated regular expressions.
    • Use UTF-8 literals to perform UTF-8 conversion at compile-time instead of runtime.
  • Breaking Drop support for .NET 4.5: #​1209.
  • Add DNS Check Interval connection string option: #​1201.
  • Support restrictions in MySqlConnection.GetSchema.
    • Schema collections are code-generated: #​1190.
  • Use user-provided callbacks when opening new connection to KILL QUERY: #​1179.
  • Set activity tags when opening a connection fails: #​1196.
  • Raise Component.Disposed event from MySqlConnection.DisposeAsync: #​1235.
  • Use ValueTask instead of ValueTask<int>: #​1233.
    • Breaking This changes the return type of MySqlConnection.ResetConnectionAsync for netstandard2.0, net461, net471.
  • Possibly Breaking Normalize the order of keys in the connection string returned by MySqlConnectionStringBuilder.ConnectionString: #​1217.
  • Possibly Breaking Update dependencies.
    • Update System.Diagnostics.DiagnosticSource to 6.0.0.
    • Update System.Memory to 4.5.5.
    • Update System.Threading.Tasks.Extensions to 4.5.4: #​1144.

2.1.13

  • Swallow (but log) exceptions in MySqlDataReader.Dispose(Async): #​1154.
  • Add MySqlDataReader.GetBytes(string): #​1197.
  • Eliminate allocation in OnStatementBegin: #​1207.
  • Thanks to @​CorentinPtrl and @​iamcarbon for contributions to this release.

2.1.12

2.1.11

  • Fix NullReferenceException in MySqlConnector.Utilities.TimerQueue.Callback: #​1177.
  • Support floating point infinity: #​1185.
  • Thanks to @​maicodio for contributions to this release.

2.1.10

  • Add MySqlBulkCopy.ConflictOption setting: #​1176.
  • Thanks to @​klym1 for contributions to this release.

2.1.9

  • Set Activity status to ERROR if an exception occurs during ExecuteReader: #​1171.
  • SSL Mode = Disabled is supported as a synonym for SSL Mode = None: #​1168.
    • Added MySqlSslMode.Disabled enum value.
  • MySqlAttribute implements ICloneable: #​1169.
  • (Internal) Unix domain socket connection uses UnixDomainSocketEndPoint class: #​1160.
  • Thanks to @​qq362220083 for contributions to this release.

2.1.8

  • Fix bug that reset MySqlCommand.LastInsertedId to -1 between commands: #​1147.
  • Fix bug using MySqlBulkCopy with DateOnly and TimeOnly: #​1146.

Full Changelog: mysql-net/MySqlConnector@2.1.7...2.1.8

2.1.7

  • MySqlCommand no longer automatically appends a semicolon to the user-provided CommandText: #​1133.
    • This improves compatibility with Sphinx Search (SphinxQL).
  • MySqlBulkCopy supports MySqlDecimal, BigInteger, DateOnly, TimeOnly: #​1143.
  • Fix InvalidOperationException when the TLS Version connection string option contains multiple values: #​1138.

2.1.6

  • Fix unintentional TLS downgrade: #​1132.
    • To ensure the desired TLS version is used, set TlsVersion in your connection string.
  • Fix deadlock when cancelling a command: #​1131.
  • Fix ArgumentException when calling GetSchema("Parameters") against MySQL 8.0: #​1128.
  • Set MySqlParameter.Size in DeriveParameters: #​1125.
  • Thanks to @​ahydrax and @​lostatredrock for contributions to this release.

2.1.5

  • Speed up MySqlDataAdapter.Update when UpdateBatchSize is large: #​1124.
  • Remove DO SLEEP(0) use after cancelling a query: #​1115.
    • This improves compatibility with MariaDB Xpand.
  • Encode NUL bytes as \0 on the wire: #​1121.
    • This improves compatibility with SingleStore.

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

---
updated-dependencies:
- dependency-name: MySqlConnector
  dependency-version: 2.6.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code labels Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants