NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #242 most downloaded on NuGet
A truly async MySQL ADO.NET provider, supporting MySQL Server, MariaDB, Amazon Aurora, Azure Database for MySQL, Google Cloud SQL, and more.
Latest stable
3.0.0
Last release 11 days ago
12 Nov 2026
Release timing varies
gaps range from 3 weeks to 12 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
106 versions withdrawn
withdrawn after publishing
127 years old
266 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Possibly Breaking Changed several columns in the tables schema from long to ulong ; this matches the data type on most MySQL servers.
zstd compression on .NET 11: #717.UseCompression=True, zstd is preferred over zlib if the server supports it.net8.0 build.netstandard2.1, but won't have DbBatch integration or DateOnly/TimeOnly support.net462 as the minimum supported .NET Framework version but the integration tests for it have been removed and no longer run on each CI build.OTEL_SEMCONV_STABILITY_OPT_IN environment variable is ignored.MySqlConnectorTracingOptionsBuilder.WithSemanticConventionsKinds is now [Obsolete] and has no effect.db.connection_string, db.name, db.statement, db.system, db.user, net.*, and thread.id tags and the exception event are no longer recorded.Open activities now have db.namespace and server.address tags even if the connection fails.error.type to timeout.VARBINARY(16) columns are no longer read as Guid when using Binary16 GuidFormat: #1691.
MySqlDataReader.GetGuid instead of GetValue.ChangeDatabase or USE), select the connection string's Database again without reauthenticating: #1671.
ProvidePasswordCallback and saves round trips when pipelining is enabled.ConnectionReset=False, other session state is no longer reset in this case.TransactionScope: #1299.
SERIALIZABLE instead of the server default.tables schema from long to ulong; this matches the data type on most MySQL servers.MySqlDataSource.Clear and MySqlDataSource.ClearAsync: #1670.true from MySqlTransaction.SupportsSavepoints: #1676.AuthenticationPlugins.Register when the server switches to an authentication method that MySqlConnector doesn't implement: #1678.performance_schema.processlist for the ProcessList schema with MySQL 8.0.22 and later: #1443.DnsCheckInterval so new connections use the pool's cached DNS addresses, instead of possibly reconnecting to the old IP address after a DNS change: #1666.DbType.Object being mapped to MySqlDbType.Vector: #1679.Execute activity: #1667.Parameter '@'%'' must be defined. when executing account management statements: #1480.GetInt32, GetDateTime) without boxing: #721.ZLibEncoder, and ZLibDecoder in .NET 11.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add SkipCertificateRevocationCheck connection string option: #1615 .
SkipCertificateRevocationCheck connection string option: #1615.Add SkipCertificateRevocationCheck connection string option: #1615
Thanks to Bart Koelman for contributions to this release.
Fix GHSA-473q-m89c-ghf8 : MitM password disclosure in zero-configuration TLS mode.
MySqlCommand.Prepare with INSERT INTO ... RETURNING: #1652.Fix GHSA-473q-m89c-ghf8 : MitM password disclosure in zero-configuration TLS mode.
Fix MySqlCommand.Prepare with INSERT INTO ... RETURNING : #1652 .
Thanks to Diego Dupin for contributions to this release.
Add opt-in stable OpenTelemetry semantic conventions: #1435 .
OTEL_SEMCONV_STABILITY_OPT_IN to database or database/dup (or use WithSemanticConventionsKinds) to test the new semantic conventions.traceparent to MySQL Server: #1635.EnableResultSetHeaderEvent is now opt-in: #1633.AddMySqlDataSource and related APIs from MySqlConnector.DependencyInjection to MySqlConnector: #1649.Possibly breaking MySqlConnection.State will be set to ConnectionState.Broken when there is a network error: #1599 .
MySqlConnection.State will be set to ConnectionState.Broken when there is a network error: #1599.
ConnectionState.Closed but the connection wasn't truly closed.MySqlConnection.Close() to fully close the connection before calling Open() again..Dispose() (ideally with a using declaration) and create a new MySqlConnection instance to recover from failure.MySqlConnection.ResetConnectionAsync will consistently throw a MySqlException: #1602.PARSEC authentication: #1540, #1606.VECTOR data type: #1549.COM_STMT_SEND_LONG_DATA to stream large parameter values: #943.MySqlConnectorTracingOptions and builder APIs to configure tracing output: #1524.Guid values from stored procedure out parameters: #1528.MySqlDbType with [DbProviderSpecificTypeProperty(true)]: #1557.mysql.proc: #1547.MySqlBulkCopy auto-detected column mappings: #1568.Foreign Keys schema SQL syntax: #1601.caching_sha2_password: #1562.System.Threading.Lock for .NET 9.0+.PemEncoding in .NET 5.0+ and UTF-8 methods in .NET 10.0+.Possibly breaking Mark MySqlConnectorLogManager.Provider as [Obsolete] : #1397 .
MySqlConnectorLogManager.Provider as [Obsolete]: #1397.DbDataSource need to target .NET 8.0 or later.MySqlDataSourceBuilder.UseConnectionOpenedCallback: #1508.MySqlDbColumn.TableName: #1521.SET data type in functions: #1491.TABLESPACES schema: #1477.SET NAMES commands when not necessary: #1497.NullReferenceException in MySqlConnection.Cancel: #1506.InvalidOperationException in FinishQuerying: #1341.MySqlDataSourceBuilder.UseConnectionOpenedCallback: #1508.SET data type in functions: #1491.SET NAMES commands when not necessary: #1497.NullReferenceException in MySqlConnection.Cancel: #1506.TABLESPACES schema: #1477.Fix NullReferenceException in MySqlDataReader.ActivateResultSet and MySqlDataReader.DisposeAsync: #1459.
NullReferenceException in MySqlDataReader.ActivateResultSet and MySqlDataReader.DisposeAsync: #1459.
NullReferenceException in ServerSession during cancellation: #1472.Foreign Keys schema not being generated asynchronously.Fix VerifyCA incompatibility with AWS Aurora: #1462.
VerifyCA incompatibility with AWS Aurora: #1462.SslCa connection string option and SslMode is VerifyCA or VerifyFull.Pipelining = False; in your connection string to disable this optimization if there are compatibility issues.START TRANSACTION payloads.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.
DLL files within the NuGet packages are now digitally signed.
Unify Application Name connection string option and MySqlDataSourceBuilder.UseName: #1434.
Application Name connection string option and MySqlDataSourceBuilder.UseName: #1434.ArgumentOutOfRangeException in TimerQueue.Add: #1424.InvalidCastException when using stored procedures with MySQL 5.0: #1431.MySqlDataSource twice on .NET Framework.Support COLUMN_NAME restriction for IndexColumns schema; this improves NHibernate compatibility.
COLUMN_NAME restriction for IndexColumns schema; this improves NHibernate compatibility.Add Foreign Keys, Indexes, Index Columns schemas: #1419.
Foreign Keys, Indexes, Index Columns schemas: #1419.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 Alisha Kim , Evgeni Alesinskyy , and Jan Trejbal for contributions to this release.
Add db.client.connections.timeouts counter to metrics: #1392.
db.client.connections.timeouts counter to metrics: #1392.schemaRestrictions array to be passed to GetSchema: #1394.double: #1396.AddKeyedMySqlDataSource to support keyed services: #1391.Microsoft.Extensions.DependencyInjection.Abstractions dependency to 8.0.0.MySqlConnectorLogManager.Provider can still be used to add a logging destination, but it is now deprecated.
[Obsolete].DbBatchCommand.CreateParameter: #1352.IUtf8SpanFormattable, Ascii.FromUtf16, Guid(bigEndian: true) constructor, argument-throwing helpers, etc.net48) TFM: #1355.
TlsVersion = TLSv1.3 to be used on .NET Framework 4.8.netstandard2.0.MySqlDataSource is now available for all TFMs, not just .NET 7.0: #1269.
MySqlConnection with dependency injection.MySqlDataSourceBuilder class to configure MySqlDataSource instances.MySqlDataSource.Name and MySqlDataSourceBuilder.UseName.MySqlConnectorLogManager.Provider can still be used to add a logging destination, but it is now deprecated.MySqlDataSourceBuilder.UseLoggerFactory to configure logging.MySqlDataSource and MySqlConnection can be registered with dependency injection by using builder.Services.AddMySqlDataSource(connectionString).COM_MULTI protocol support: #946.ZEROFILL columns in MySqlDecimal: #1354.DateTime values: #1379.ValueTask in MySqlBulkCopy API for all TFMs: #1364.
WriteToServerAsync from Task<MySqlBulkCopyResult> to ValueTask<MySqlBulkCopyResult> on .NET FrameworkCommandBehavior.SchemaOnly and SingleRow: #1312.MySqlDataReader objects: #1277.TcpClient.ConnectAsync overload with CancellationToken on .NET 5.0 and later: #1291.MySqlConnection.CloneWith for connections created from a MySqlDataSource: #1306.@ in MySqlBulkCopy: #1365.MySqlDbType when serializing enum values: #1384.MySqlDataSource in MySqlConnection.Clone: #1267.ActivityStatus to latest conventions: #1334.CommandTimeout: #1338.Respect ConnectTimeout when resetting connection: #1321.
Ignore deadlock exception when rolling back an XA transaction: #1317.
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 Diego Dupin for contributions to this release.
Add support for DECIMAL UNSIGNED, fixing error in DeriveParameters: #1272.
DECIMAL UNSIGNED, fixing error in DeriveParameters: #1272.nan as float/double value on .NET Framework.Full Changelog: https://github.com/mysql-net/MySqlConnector/compare/2.2.4...2.2.5
Fix a race condition in recovering leaked sessions: #1263.
Avoid renormalizing parameter names when executing a prepared command: #1252.
GetSchema: #1258.TableName property of the DataTable returned from GetSchema.FormatInvariant internal helper method: #1253.Fix memory leak when initializing a TLS connection: #1247.
Full Changelog: https://github.com/mysql-net/MySqlConnector/compare/2.2.1...2.2.2
Fix failure to load client SSL private key files: #1242.
Add MySqlDataSource, an implementation of DbDataSource for MySQL: #1208.
MySqlDataSource, an implementation of DbDataSource for MySQL: #1208.DNS Check Interval connection string option: #1201.MySqlConnection.GetSchema.
KILL QUERY: #1179.Component.Disposed event from MySqlConnection.DisposeAsync: #1235.ValueTask instead of ValueTask<int>: #1233.
MySqlConnection.ResetConnectionAsync for netstandard2.0, net461, net471.MySqlConnectionStringBuilder.ConnectionString: #1217.Swallow (but log) exceptions in MySqlDataReader.Dispose(Async): #1154.
MySqlDataReader.Dispose(Async): #1154.MySqlDataReader.GetBytes(string): #1197.OnStatementBegin: #1207.Swallow (but log) exceptions in MySqlDataReader.Dispose(Async) : #1154 .
Add MySqlDataReader.GetBytes(string) : #1197 .
Eliminate allocation in OnStatementBegin : #1207 .
Thanks to Corentin Pitrel and Jason Nelson for contributions to this release.
Support new character sets added in MySQL Server 8.0.30.
Fix NullReferenceException in MySqlConnector.Utilities.TimerQueue.Callback: #1177.
NullReferenceException in MySqlConnector.Utilities.TimerQueue.Callback: #1177.Fix NullReferenceException in MySqlConnector.Utilities.TimerQueue.Callback : #1177 .
Support floating point infinity: #1185 .
Thanks to Maico Dionisio for contributions to this release.
Add MySqlBulkCopy.ConflictOption setting: #1176.
MySqlBulkCopy.ConflictOption setting: #1176.Add MySqlBulkCopy.ConflictOption setting: #1176 .
Thanks to Mykola Klymyuk for contributions to this release.
Set Activity status to ERROR if an exception occurs during ExecuteReader: #1171.
Activity status to ERROR if an exception occurs during ExecuteReader: #1171.SSL Mode = Disabled is supported as a synonym for SSL Mode = None: #1168.
MySqlSslMode.Disabled enum value.MySqlAttribute implements ICloneable: #1169.UnixDomainSocketEndPoint class: #1160.Fix bug that reset MySqlCommand.LastInsertedId to -1 between commands: #1147.
MySqlCommand.LastInsertedId to -1 between commands: #1147.MySqlBulkCopy with DateOnly and TimeOnly: #1146.Full Changelog: https://github.com/mysql-net/MySqlConnector/compare/2.1.7...2.1.8
MySqlCommand no longer automatically appends a semicolon to the user-provided CommandText: #1133.
MySqlCommand no longer automatically appends a semicolon to the user-provided CommandText: #1133.
MySqlBulkCopy supports MySqlDecimal, BigInteger, DateOnly, TimeOnly: #1143.InvalidOperationException when the TLS Version connection string option contains multiple values: #1138.Fix unintentional TLS downgrade: #1132.
TlsVersion in your connection string.ArgumentException when calling GetSchema("Parameters") against MySQL 8.0: #1128.MySqlParameter.Size in DeriveParameters: #1125.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 Andrew Nagel and Viktor Svyatokha for contributions to this release.
Speed up MySqlDataAdapter.Update when UpdateBatchSize is large: #1124.
MySqlDataAdapter.Update when UpdateBatchSize is large: #1124.DO SLEEP(0) use after cancelling a query: #1115.
\0 on the wire: #1121.
Fix InvalidOperationException if MySqlDataReader.RecordsAffected was read after calling Close() or Dispose(): #1122.
InvalidOperationException if MySqlDataReader.RecordsAffected was read after calling Close() or Dispose(): #1122.
Fix Use Compression = True when running under .NET 6.0: #1120.
Use Compression = True when running under .NET 6.0: #1120.ExecuteNonQuery) for compound statements: #1096.FormatException message when a GUID can't be read: #1114.SkipLocalsInit where possible.This tag was signed with the committer’s verified signature .
bgrainger Bradley Grainger
GPG key ID: 92C067450846E3F7
Verified Learn about vigilant mode .
cf045e8
This commit was signed with the committer’s verified signature .
bgrainger Bradley Grainger
GPG key ID: 92C067450846E3F7
Verified Learn about vigilant mode .
Fix Use Compression = True when running under .NET 6.0: #1120 .
Fix calculation of affected rows (the return value of ExecuteNonQuery ) for compound statements: #1096 .
Use a better FormatException message when a GUID can't be read: #1114 .
Use cryptographic one-shot operations on .NET 5.0 and later.
Performance: Use SkipLocalsInit where possible.
Fix Use Compression = True when running under .NET 6.0: #1120 .
Fix calculation of affected rows (the return value of ExecuteNonQuery ) for compound statements: #1096 .
Breaking For a stored procedure, the return value of ExecuteNonQuery will be the number of rows affected by the last statement in the procedure, or zero if the last statement was a SELECT .
Use a better FormatException message when a GUID can’t be read: #1114 .
Use cryptographic one-shot operations on .NET 5.0 and later.
Performance: Use SkipLocalsInit where possible.
Fix incorrect results when using prepared commands with MySQL Server 8.0.23–8.0.25: #1106.
Fix InvalidOperationException when OpenAsync is called again after being canceled: #1097.
InvalidOperationException when OpenAsync is called again after being canceled: #1097.OpenAsync to be canceled earlier.Opening a connection from the pool is now twice as fast: #1089.
Pipelining = False; in the connection string.MySqlCommand.Attributes collection to send them to the server when the command is executed.MySqlDecimal support: #1070.MySqlDataReader.GetX exceptions for NULL values: #1092.MySqlConnector. by default: #1080.
MicrosoftExtensionsLoggingLoggerProvider(loggingFactory, omitMySqlConnectorPrefix: true)..UseMySqlConnectorLogging() extension method to add logging easily.Breaking Change how option keys are serialized when retrieving the MySqlConnectionStringBuilder.ConnectionString property:
MySqlBatch (experimental API) to match .NET 6.0 API changes.DateOnly and TimeOnly structs: #963.ZLibStream for compression: #957.X_OR_GREATER preprocessor definitions: #958.MySqlBulkCopy API: #1012.ConnectionIdlePingTime: #1042.
Connection Idle Ping Time connection string option is still accepted, but has no effect.Connection Reset = False, MySqlConnection.Open will return a pooled connection (if one is available) without testing it for liveness (by pinging the server). If the server has closed the pooled connection, MySqlConnection.Open will succeed, but the first operation on that connection will fail. Command execution should be wrapped in a try/catch/retry loop to handle this scenario.Connection Reset = False improves performance but may degrade reliability; Connection Reset = True, which is the default, is still recommended for greatest reliability.MySqlConnectionStringBuilder.ConnectionString property:
User Id is now User ID, DefaultCommandTimeout is now Default Command Timeout, etc.MySqlCommandBuilder and MySqlConversionException.netstandard1.3 and netcoreapp2.1 target frameworks: #1031, #1067.ActivitySource for tracing: #1036.MySqlConnection.ProvideClientCertificatesCallback, MySqlConnection.ProvidePasswordCallback, MySqlConnection.RemoteCertificateValidationCallback: #800, #976.BigInteger as parameter value: #1069.MySqlErrorCode: #1048.MySqlError.Code obsolete: #1011.
ErrorCode property instead.BackgroundConnectionResetHelper: #1013.
MySqlConnectionStringBuilder.DeferConnectionReset is obsolete and will always be treated as if it's true.[Category], [DefaultValue], and [Description] attributes to all MySqlConnectionStringBuilder properties.DELIMITER is used in a SQL statement: #1010.MySqlConnectionStringBuilder.TryGetValue: #1030.MySqlCommand.LastInsertedId when executing multiple commands: #1026.ObjectDisposedException that could be thrown when a connection timeout occurred.Fix bug that failed to deserialize a binary row (from a prepared statement) correctly: #1018.
Remove inner exception for UnableToConnectToHost exception: #1035.
UnableToConnectToHost exception: #1035.Fix bug executing stored procedures with backticks in their names: #1029.
Add MySqlError.ErrorCode: #1011.
MySqlError.ErrorCode: #1011.MySqlDataReader.GetDateTime to read a VARCHAR column as a DateTime: #980.NEWDATE column type: #1007.Handle NoBackslashEscapes for binary parameter values: #999.
NoBackslashEscapes for binary parameter values: #999.NotSupportedException when cancelling a MySqlCommand in a TransactionScope: #1001.InvalidOperationException thrown from MySqlConnection.Cancel: #1002.DeferConnectionReset to true; this disables background connection reset and restores the pre-1.3 behavior.Use StringBuilder.GetChunks (in .NET 5.0) for MySqlParameter: #977.
StringBuilder.GetChunks (in .NET 5.0) for MySqlParameter: #977.MySqlBulkCopy: #974.StringBuilder MySqlParameter values in .NET 5.0.Reduce latency of resetting connections: #982.
Add support for SingleStore: #968.
Add support for SingleStore : #968 .
Thanks to Carl Sverre and Tigran Avanesov for contributions to this release.
Add NuGet Package ReadMe: #978.
Support StringBuilder, Memory , and ReadOnlyMemory as MySqlParameter.Value values: #975.
StringBuilder, Memory<char>, and ReadOnlyMemory<char> as MySqlParameter.Value values: #975.ArgumentException in MySqlBulkCopy: #974.Improve compatibility with MySQL Server 8.0.24:
ER_CLIENT_INTERACTION_TIMEOUT error packet sent to timed-out connections: #970.UseCompression=true may throw a MySqlProtocolException when timed out.Support Enum parameters in prepared commands: #965.
Enum parameters in prepared commands: #965.OverflowException reading OkPayload: #966.Fix a bug that could cause a timed-out query to still throw a QueryInterrupted MySqlException instead of CommandTimeoutExpired.
QueryInterrupted MySqlException instead of CommandTimeoutExpired.Remove two new Info log messages added in 1.3.0: #956.
Connections are now reset asynchronously in the background: #178.
MySqlConnection.Open(Async) but still cleans up connections between uses.DeferConnectionReset=true in the connection string to revert to the old behaviour.ConnectionIdlePingTime=300 in the connection string to avoid any network I/O when retrieving a connection from the pool; this is fastest but may return invalid connections from Open. This setting is experimental and may change in the future.IgnorePrepare to false: #929.
MySqlCommand.Prepare(Async) will have an effect by default.MemoryStream as a value for MySqlParameter.Value: #943.MySqlException.IsTransient: #849.IComparable<MySqlDateTime> and IEquatable<MySqlDateTime> on MySqlDateTime.public constructor for MySqlConversionException.
public.CommandTimeoutExpired consistently: #939.
MySqlException.ErrorCode from QueryInterrupted to CommandTimeoutExpired.CancellationTimeout connection string option: #951.OperationCanceledException from OpenAsync when the CancellationToken is cancelled: #931.MySqlException.ErrorCode property.MySqlTransaction.Dispose: #923.MySqlException (thrown in some scenarios from ExecuteReader).Fix bug in extracting PEM data when there's extra data in the certificate file: #912.
Fix bug in extracting PEM data when there’s extra data in the certificate file: #912 .
Thanks to Laurents Meyer for contributions to this release.
Add TlsCipherSuites connection string option for fine-grained control of TLS cipher suites: #904.
TlsCipherSuites connection string option for fine-grained control of TLS cipher suites: #904.
MySqlBulkCopy.Cancel query (server-side) when CommandTimeout expires: #455.
CommandTimeout expires: #455.
CancellationTimeout connection string option.null from MySqlDataReader.GetSchemaTable when there is no result set: #877.DisposeAsync fully async: #876.ObjectDisposedException thrown in TryResetConnectionAsync: #897.MySqlCommand.Cancel: #820.Support ENUM columns that use the MYSQL_TYPE_ENUM type in their column metadata: #850.
ENUM columns that use the MYSQL_TYPE_ENUM type in their column metadata: #850.MySqlCommand.CommandText and .Connection to be changed while another command is executing: #867.MySqlConnection.GetSchema(collectionName)) case-insensitive: #852.MySqlBulkLoader with Azure Database for MySQL/MariaDB: #853.MySqlParameterCollection.Insert implementation: #869.Breaking Change namespace to MySqlConnector: #824.
MySqlConnector: #824.MySqlClientFactory to MySqlConnectorFactory: #839.MySqlConnectionStringBuilder string properties return "" (not null) when unset: #837.MySqlInfoMessageEventArgs.errors property; use .Errors instead.MySqlConnectorFactory.CanCreateXyz methods: #838.net5.0 target framework.MySqlException.ErrorCode: #830.MySqlConnection.ResetConnectionAsync: #831.MySqlBulkCopy: #834.Ignore ObjectDisposedException thrown in TryResetConnectionAsync: #897.
ObjectDisposedException thrown in TryResetConnectionAsync: #897.Ignore ObjectDisposedException thrown in TryResetConnectionAsync : #897 .
Thanks to laurent-jeancler-realist for contributions to this release.
Return null from MySqlDataReader.GetSchemaTable when there is no result set: #877.
null from MySqlDataReader.GetSchemaTable when there is no result set: #877.Fix MySqlBulkLoader with Azure Database for MySQL/MariaDB: #853.
MySqlBulkLoader with Azure Database for MySQL/MariaDB: #853.MySqlConnection.GetSchema(collectionName)) case-insensitive: #852.One column per quarter.