MySqlConnector is an ADO.NET data provider for MySQL Server, MariaDB, Percona Server, Amazon Aurora, Azure Database for MySQL and more. It provides implementations of DbConnection, DbCommand, DbDataReader, DbTransaction — the classes needed to query and update databases from managed code. Its features include:

  • .NET Core Compatibility
  • Truly Asynchronous: async functions implement asynchronous I/O
  • High Performance: code is stress tested for performance bottlenecks and performs well on the TechEmpower Framework Benchmarks
  • Lightweight: Library only implements ADO.NET core

Getting Started

Read how to install and a basic example of using the API.

Why use MySqlConnector over Oracle’s Connector/NET?

MySqlConnector is a clean-room reimplementation of the MySQL Protocol and is not based on Oracle’s Connector/NET.

MySqlConnector Oracle’s Connector/NET MySqlConnector Advantage
Async Fully asynchronous I/O Async calls map to synchronous I/O Uses fewer thread pool threads; higher throughput
Development Open and Collaborative Development on GitHub Closed Development Roadmap. Code is viewable on GitHub, some issues addressed in forums Get involved! View our roadmap, discuss issues, contribute pull requests
License The MIT License GPLv2 with FOSS Exception; or commercial license More Permissive