Skip to content
项目

mysql-net/MySqlConnector has 1,506 GitHub stars and 356 forks. GitHot measured -1 stars in 24 hours, +1 in 7 days, and +1 in 15 days. Last checked 2026-11-20 09:22 UTC. Last push 2026-11-14.

这些数字如何统计

实测星标增长

24小时
-1
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

MySQL Connector for .NET

数据

README.md

原文

MySQL Connector for .NET and .NET Core

NuGet

This is an ADO.NET data provider for MySQL and other compatible servers including MariaDB. It provides implementations of DbDataSource, DbConnection, DbCommand, DbDataReader, DbTransaction—the classes needed to query and update databases from managed code.

Complete documentation is available at the MySqlConnector Documentation Website.

Why Use This Library?

Performance

This library outperforms MySQL Connector/NET (MySql.Data) on benchmarks (lower is better):

Benchmark

(Client: MySqlConnector 3.0.0, MySql.Data 26.10.0, Ubuntu 24.04, .NET 11.0; Server: Azure Database for MySQL 8.4.11, TLS 1.3)

Server Compatibility

This library is compatible with many MySQL-compatible servers, including MySQL 5.5 and newer and MariaDB 10.x and newer. MySql.Data only supports MySQL Server.

Bug Fixes

This library fixes dozens of outstanding bugs in Connector/NET.

Cutting Edge

This library implements the latest ADO.NET APIs, from async (introduced in .NET Framework 4.5), through DbBatch (.NET 6.0) and DbDataSource (.NET 7.0). It supports OpenTelemetry tracing and metrics.

License

This library is MIT-licensed and may be freely distributed with commercial software. Commercial software that uses Connector/NET may have to purchase a commercial license from Oracle.

Related Projects

This library is compatible with popular .NET ORMs including:

For Entity Framework support, use:

  • Microting.EntityFrameworkCore.MySql (GitHub, NuGet)
  • [EF9 and below] Pomelo.EntityFrameworkCore.MySql (GitHub, NuGet)

For ASP.NET Core health checks, use:

Build Status

CI

Building

Install the latest .NET.

To build and run the tests, clone the repo and execute:

dotnet restore
dotnet test tests\MySqlConnector.Tests

To run the integration tests, see the instructions.

Goals

The goals of this project are:

  1. .NET Standard support: It must run on the full .NET Framework and all platforms supported by .NET Core.
  2. Async: All operations must be truly asynchronous whenever possible.
  3. High performance: Avoid unnecessary allocations and copies when reading data.
  4. Lightweight: Only the core of ADO.NET is implemented, not EF or Designer types.
  5. Managed: Managed code only, no native code.
  6. Independent: This is a clean-room reimplementation of the MySQL Protocol, not based on Connector/NET.

Cloning the full API of Connector/NET is not a goal of this project, although it will try not to be gratuitously incompatible. For typical scenarios, migrating to this package should be easy.

License

This library is licensed under the MIT License.

Contributing

If you'd like to contribute to MySqlConnector, please read our contributing guidelines.

Acknowledgements

Development of MySqlConnector is supported by:

Devolutions

Devolutions

Faithlife

Faithlife (View jobs)