MySql.Data 8.3.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package MySql.Data --version 8.3.0
NuGet\Install-Package MySql.Data -Version 8.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MySql.Data" Version="8.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySql.Data --version 8.3.0
#r "nuget: MySql.Data, 8.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MySql.Data as a Cake Addin
#addin nuget:?package=MySql.Data&version=8.3.0

// Install MySql.Data as a Cake Tool
#tool nuget:?package=MySql.Data&version=8.3.0

About

MySQL provides connectivity for client applications developed in .NET compatible programming languages with MySQL Connector/NET through a series of packages.

MySql.Data is the core package of Connector/NET. It is compatible with .NET Framework 4.6+ and .NET 6.0+ and provides classic MySQL protocol and MySQL X DevAPI capabilities.

More information at MySQL Connector/NET documentation.

How to use

    MySql.Data.MySqlClient.MySqlConnection myConnection;
    string myConnectionString;
    //set the correct values for your server, user, password and database name
    myConnectionString = "server=127.0.0.1;uid=root;pwd=12345;database=test";

    try
    {
      myConnection = new MySql.Data.MySqlClient.MySqlConnection(myConnectionString);
      //open a connection
      myConnection.Open();

      // create a MySQL command and set the SQL statement with parameters
      MySqlCommand myCommand = new MySqlCommand();
      myCommand.Connection = myConnection;
      myCommand.CommandText = @"SELECT * FROM clients WHERE client_id = @clientId;";
      myCommand.Parameters.AddWithValue("@clientId", clientId);

      // execute the command and read the results
      using var myReader = myCommand.ExecuteReader()
      {
        while (myReader.Read())
        {
          var id = myReader.GetInt32("client_id");
          var name = myReader.GetString("client_name");
          // ...
        }
      }
      myConnection.Close();
    }
    catch (MySql.Data.MySqlClient.MySqlException ex)
    {
      MessageBox.Show(ex.Message);
    }

Contributing

There are a few ways to contribute to the Connector/NET code. Please refer to the contributing guidelines for additional information.

Additional Resources

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1.7K)

Showing the top 5 NuGet packages that depend on MySql.Data:

Package Downloads
MySql.Data.EntityFrameworkCore The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

MySql.Data.EntityFrameworkCore for Entity Framework.

MySql.EntityFrameworkCore The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

MySQL Server database provider for Entity Framework Core.

dbup-mysql

DbUp makes it easy to deploy and upgrade SQL Server databases. This package adds MySql support.

MySql.Data.EntityFramework The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

MySql.Data.EntityFramework

linq2db.MySql The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

LINQ to MySql is a data access technology that provides a run-time infrastructure for managing relational data as objects. Install this package only if you want to use database model scaffolding using T4 templates (requires Visual Studio or Rider), otherwise you should use linq2db package.

GitHub repositories (167)

Showing the top 5 popular GitHub repositories that depend on MySql.Data:

Repository Stars
dotnet/orleans
Cloud Native application framework for .NET
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
DotNetNext/SqlSugar
.Net aot ORM Fastest ORM Simple Easy Sqlite orm Oracle ORM Mysql Orm postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm Object/Relational Mapping
dotnetcore/FreeSql
🦄 .NET aot orm, C# orm, VB.NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, 虚谷 orm, 国产 orm, Clickhouse orm, QuestDB orm, MsAccess orm.
Version Downloads Last updated
8.3.0 316,894 1/16/2024
8.2.0 581,837 10/25/2023
8.1.0 1,007,224 7/18/2023
8.0.33 1,363,923 4/18/2023
8.0.32.1 810,275 3/8/2023
8.0.32 1,167,313 1/17/2023
8.0.31 2,491,996 10/11/2022
8.0.30 2,967,729 7/26/2022
8.0.29 3,718,695 4/26/2022
8.0.28 2,446,847 1/21/2022
8.0.27 2,379,574 10/19/2021
8.0.26 2,229,224 7/20/2021
8.0.25 2,026,277 5/11/2021
8.0.24 1,128,597 4/20/2021
8.0.23 2,343,956 1/18/2021
8.0.22 3,444,251 10/19/2020
8.0.21 4,598,867 7/13/2020
8.0.20 2,949,269 4/27/2020
8.0.19 3,135,284 1/13/2020
8.0.18 2,796,188 10/14/2019
8.0.17 2,658,102 7/22/2019
8.0.16 2,721,767 4/26/2019
8.0.15 2,918,560 2/1/2019
8.0.14 811,036 1/22/2019
8.0.13 2,104,027 10/22/2018
8.0.12 2,574,927 7/27/2018
8.0.11 1,853,912 4/19/2018
6.10.9 2,627,340 7/29/2019
6.10.7 1,306,422 4/30/2018
6.9.12 2,595,892 5/4/2018
6.8.8 359,500 6/27/2016
6.7.9 693,294 10/14/2015

Review ReleaseNotes.txt for details.