MySqlConnector

Async MySQL Connector for .NET and .NET Core

Github星跟蹤圖

Async MySQL Connector for .NET and .NET Core

This is an ADO.NET data
provider for MySQL. It provides implementations of
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?

Async Support

This library implements true asynchronous I/O for database operations, without blocking
(or using Task.Run to run synchronous methods on a background thread). This greatly
improves the throughput of a web server that performs database operations.

Performance

This library outperforms Connector/NET (MySql.Data) on benchmarks:

Benchmark 1 Benchmark 2

(Client: MySqlConnector 0.44.0, Windows 10 x64; Server: MySQL Server 5.6.21, Unix)

Bug Fixes

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

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.

ORMs

This library is compatible with popular .NET ORMs including:

For Entity Framework support, use:

Build Status

Ubuntu 14.04, Windows x64, NuGet
---, ---, ---
Travis CI, AppVeyor, NuGet Pre Release

Building

Install the latest .NET Core.

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

dotnet restore
dotnet test tests\MySqlConnector.Tests

To run the side-by-side 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 common scenarios, this package should
be a drop-in replacement.

License

This library is licensed under the MIT License.

Contributing

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

主要指標

概覽
名稱與所有者mysql-net/MySqlConnector
主編程語言C#
編程語言C# (語言數: 5)
平台
許可證MIT License
所有者活动
創建於2016-03-31 21:54:37
推送於2025-06-12 01:35:26
最后一次提交2025-05-24 13:56:57
發布數226
最新版本名稱2.4.0 (發布於 2024-11-12 12:15:08)
第一版名稱0.15.2 (發布於 )
用户参与
星數1.5k
關注者數70
派生數341
提交數2.9k
已啟用問題?
問題數1111
打開的問題數90
拉請求數301
打開的拉請求數1
關閉的拉請求數91
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?