Skip to content
| Marketplace
Sign in
Visual Studio>Controls>dotConnect for MySQL & MariaDB
dotConnect for MySQL & MariaDB

dotConnect for MySQL & MariaDB

Devart Software

|
85,650 installs
| (4) | Free Trial
High-performance ORM enabled ADO.NET data provider for MySQL 8.0+ including Embedded servers, MariaDB, Amazon RDS, Amazon Aurora, Azure MySQL, Percona that builds on ADO.NET technology
Download

.NET Connector for MySQL, MariaDB, Amazon RDS, Amazon Aurora, Azure MySQL, Percona with ORM Support

dotConnect

Get Started | Explore Features | Documentation

30 days free trial • ORM support • Visual Studio integration

dotConnect for MySQL is a versatile enterprise-grade connector that enables access to MySQL/MariaDB data in .NET applications of all levels. It delivers advanced ORM support, compatibility with multiple database server versions and .NET platforms, and easy integration with a variety of IDEs, including Visual Studio.

Moreover, this connector regularly undergoes security and performance tests to make sure it stays ahead of the competition at all times. Extra benefits include priority support, frequent updates, and detailed documentation to help you with a quick and easy start.

  • Advanced ORM support: EF Core, Dapper, NHibernate, LinqConnect, and more
  • Full compliance with ADO.NET standards
  • Secure SSL/SSH connections, proxy servers, embedded servers, and HTTP tunneling
  • Advanced encryption and data integrity
  • Maximum performance via pagination and selective loading
  • Comprehensive support for MySQL-specific data types
  • Integration with Visual Studio and design-time support

Installation

  1. Install the NuGet Package
Install-Package Devart.Data.MySql

Or download the Windows installer (.exe) from the official website.

  1. Activate license
  • Free Trial License: Evaluate the full capabilities of dotConnect for MySQL in a non-commercial environment—ideal for development and testing. Start your free trial
  • Commercial License: Deploy dotConnect for MySQL in commercial applications and access full technical support with a valid license. Purchase a license

Usage

This snippet directly configures a MySQL connection using a connection string.

using Devart.Data.MySql;

class Program
{
  static void Main()
  {
  string connectionString = "" +
  "Server=127.0.0.1;" +
  "Port=3306;" +
  "UserId=TestUser;" +
  "Password=TestPassword;" +
  "Database=sakila;" +
  "License Key=**********";

  using (MySqlConnection connection = new MySqlConnection(connectionString))
  {
    try
    {
      connection.Open();
      Console.WriteLine("Connection successful!");
    }
    catch (Exception ex)
    {
      Console.WriteLine($"Error: {ex.Message}");
    }
  }
  }
}

Read the full documentation for connection here.

Video overview

dotConnect for MySQL video overview

Compatibility

The following table show which version of this package to use with which version of frameworks.

Frameworks Version support
Entity Framework Core 10, 9, 8, 7, 6, 5, 3, 2, 1
.NET 10, 9, 8, 7, 6, 5
.NET Core 3, 2, 1
.NET Framework 4.8, 4.7, 4.6, 4.5

More information here

Enhanced ORM Support

dotConnect for MySQL offers enhanced ORM support with a bundled visual designer for ORM models - Entity Developer. Our MySQL ADO.NET Provider supports the following ORMs:

  • Entity Framework v1 - v6
  • Entity Framework Core 1.x, 2.x, 3.x, 5.0, 6.0, 7.0, 8.0, 9.0, 10
  • NHibernate 1.x-5.x
  • Dapper 1.x, 2.x

Advanced Visual Studio Integration with MySQL

dotConnect for MySQL provides a vast number of GUI tools that increase your productivity. For example, it includes DataSet tools, such as DataSet Wizard, DataSet Editor, DataSet Manager, provide you an easy way to create and edit typed and untyped DataSets.

MySQL ADO.NET Provider supports advanced Visual Studio integration (DDEX) and provides convenient visual component editors to simplify component tweaking.

Support Area

Documentation

Request form

Feedback page

Product history

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft