talira

MySQL Connector/NET

Oracle's official ADO.NET driver for MySQL

open sourceGPL-2.0-only WITH Universal-FOSS-exception-1.0free

MySQL Connector/NET is the MySQL team at Oracle's official data provider for connecting .NET applications to MySQL. It is a fully managed ADO.NET provider written in C# that doesn't use the MySQL C client library, and it works with Entity Framework 6 and Entity Framework Core. It supports MySQL's document store over the X Protocol, compression, TLS 1.2 and 1.3, TCP/IP, Unix sockets, named pipes and shared memory, large packets up to 2 GB, connection pooling, async methods and OpenTelemetry tracing. The NuGet package is MySql.Data.

Problems it solves

  • connect my C# app to a MySQL database
  • use Entity Framework Core with MySQL
  • query MySQL from .NET over an encrypted connection

Features

  • fully managed ADO.NET provider in C#
  • Entity Framework 6 and Entity Framework Core support
  • MySQL document store over the X Protocol
  • TLS 1.2 and 1.3, compression and connection pooling
  • async methods and OpenTelemetry tracing

Alternatives

The same job

These do what MySQL Connector/NET does.

  1. MySqlConnector Fully async MIT-licensed ADO.NET provider for MySQL, MariaDB and compatible servers
  2. Npgsql Open source .NET data provider for PostgreSQL
  3. Microsoft.Data.SqlClient Microsoft SqlClient Data Provider for SQL Server
  4. MongoDB .NET/C# Driver The official .NET and C# driver for MongoDB

Compare MySQL Connector/NET with the top 3