A high-performance, fully managed ADO.NET data provider for MySQL and MariaDB, compatible with modern .NET.
MySqlConnector is an ADO.NET data provider for MySQL and MariaDB servers, allowing .NET applications to interact with these databases through standard ADO.NET interfaces. It solves the need for a high-performance, fully managed, and modern alternative to Oracle's official MySQL Connector/NET, offering better compatibility, bug fixes, and async support.
.NET developers building applications that require database connectivity to MySQL or MariaDB, especially those using ORMs like Dapper, Entity Framework (via Pomelo), NHibernate, or other ADO.NET-based data access layers.
Developers choose MySqlConnector for its superior performance over Connector/NET, broader server compatibility (including MariaDB), MIT licensing for commercial use, and implementation of the latest ADO.NET async APIs without the bugs and limitations of the official Oracle driver.
MySQL Connector for .NET
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Outperforms MySql.Data in benchmarks with optimized data handling, reducing latency and increasing throughput for .NET applications.
Supports MySQL 5.5+ and MariaDB 10.x+, providing a unified solution where MySql.Data only works with MySQL Server.
Implements true async/await patterns and latest ADO.NET APIs like DbBatch and DbDataSource, ensuring scalability in .NET 6+ applications.
MIT-licensed allows free distribution in commercial software without Oracle licensing fees, making it cost-effective for proprietary projects.
Does not clone the full MySql.Data API, which can cause breaking changes and require code adjustments during migration, as admitted in the README.
Lacks official Oracle support, relying on community maintenance, which may lead to slower bug fixes or updates for critical issues.
Requires additional setup with Pomelo.EntityFrameworkCore.MySql for Entity Framework Core support, adding complexity compared to native MySql.Data integrations.
MySqlConnector is an open-source alternative to the following products: