This is an ADO.NET dataprovider for MySQL. It provides implementations ofDbConnection
, DbCommand
, DbDataReader
, DbTransaction
—the classesneeded to query and update databases from managed code.
Complete documentation is available at the MySqlConnector Documentation Website.
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 greatlyimproves the throughput of a web server that performs database operations.
This library outperforms Connector/NET (MySql.Data
) on benchmarks:
(Client: MySqlConnector 0.44.0, Windows 10 x64; Server: MySQL Server 5.6.21, Unix)
This library fixes dozens of outstanding bugs in Connector/NET.
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 licensefrom Oracle.
This library is compatible with popular .NET ORMs including:
For Entity Framework support, use:
Appveyor | Azure Pipelines | NuGet |
---|---|---|
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.
The goals of this project are:
Cloning the full API of Connector/NET is not a goal of this project, althoughit will try not to be gratuitously incompatible. For typical scenarios, migrating to this package shouldbe easy.
This library is licensed under the MIT License.
If you'd like to contribute to MySqlConnector, please read our contributing guidelines.
#include #include#include //使用静态对象库//#pragma comment(lib, "C:\\Program Files\\MySQL\\MySQL Connector C 6.1\\lib\\vs12\\mysqlclient.lib")//使用动态链接库//确保 libmysql.dll 在系统路径中可以搜到 #pragma comment(lib, "C:\\
订阅 Python全栈白宝书-零基础入门篇 可报销!白嫖入口-请点击我。推荐他人订阅,可获取扣除平台费用后的35%收益,文末名片加V! 说明:该文属于 Python全栈白宝书专栏,免费阶段订阅数量4300+,购买任意白宝书体系化专栏可加入TFS-CLUB 私域社区。 福利:加入社区的小伙伴们,除了可以获取博主所有付费专栏的阅读权限之外,还有机会加入 星荐官共赢计划