MySqlConnector 1.3.11
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 2.1
This package targets .NET Core 2.1. The package is compatible with this framework or higher.
.NET Standard 1.3
This package targets .NET Standard 1.3. The package is compatible with this framework or higher.
.NET Framework 4.5
This package targets .NET Framework 4.5. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MySqlConnector --version 1.3.11
NuGet\Install-Package MySqlConnector -Version 1.3.11
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="MySqlConnector" Version="1.3.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySqlConnector --version 1.3.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MySqlConnector, 1.3.11"
#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 MySqlConnector as a Cake Addin #addin nuget:?package=MySqlConnector&version=1.3.11 // Install MySqlConnector as a Cake Tool #tool nuget:?package=MySqlConnector&version=1.3.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
About
MySqlConnector is an ADO.NET data provider for MySQL, MariaDB, Amazon Aurora, Azure Database for MySQL and other MySQL-compatible databases.
More documentation is available at the MySqlConnector website.
How to Use
// set these values correctly for your database server
var builder = new MySqlConnectionStringBuilder
{
Server = "your-server",
UserID = "database-user",
Password = "P@ssw0rd!",
Database = "database-name",
};
// open a connection asynchronously
using var connection = new MySqlConnection(builder.ConnectionString);
await connection.OpenAsync();
// create a DB command and set the SQL statement with parameters
using var command = connection.CreateCommand();
command.CommandText = @"SELECT * FROM orders WHERE order_id = @OrderId;";
command.Parameters.AddWithValue("@OrderId", orderId);
// execute the command and read the results
using var reader = await command.ExecuteReaderAsync();
while (reader.Read())
{
var id = reader.GetInt32("order_id");
var date = reader.GetDateTime("order_date");
// ...
}
Key Features
- Full support for async I/O
- High performance
- Supports. NET Framework, .NET Core, and .NET 5.0+
Main Types
The main types provided by this library are:
MySqlConnection
(implementation ofDbConnection
)MySqlCommand
(implementation ofDbCommand
)MySqlDataReader
(implementation ofDbDataReader
)MySqlBulkCopy
MySqlBulkLoader
MySqlConnectionStringBuilder
MySqlConnectorFactory
MySqlDataAdapter
MySqlException
MySqlTransaction
(implementation ofDbTransaction
)
Related Packages
- Entity Framework Core: Pomelo.EntityFrameworkCore.MySql
- Logging: log4net, Microsoft.Extensions, NLog, Serilog
Feedback
MySqlConnector is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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 | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 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.
-
.NETCoreApp 2.1
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.5
- System.Buffers (>= 4.4.0)
- System.Memory (>= 4.5.0)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETFramework 4.6.1
- System.Buffers (>= 4.4.0)
- System.Memory (>= 4.5.0)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETFramework 4.7.1
- System.Buffers (>= 4.4.0)
- System.Memory (>= 4.5.0)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
- System.Buffers (>= 4.4.0)
- System.Data.Common (>= 4.3.0)
- System.Diagnostics.Process (>= 4.3.0)
- System.Memory (>= 4.5.0)
- System.Net.NameResolution (>= 4.3.0)
- System.Net.Security (>= 4.3.1)
- System.Security.Cryptography.Algorithms (>= 4.3.0)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETStandard 2.0
- System.Buffers (>= 4.4.0)
- System.Memory (>= 4.5.0)
- System.Threading.Tasks.Extensions (>= 4.3.0)
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MySqlConnector:
Package | Downloads |
---|---|
YesSql.Provider.MySql
Package Description |
GitHub repositories (123)
Showing the top 5 popular GitHub repositories that depend on MySqlConnector:
Repository | Stars |
---|---|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
DapperLib/Dapper
Dapper - a simple object mapper for .Net
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
|
|
quartznet/quartznet
Quartz Enterprise Scheduler .NET
|
Version | Downloads | Last updated |
---|---|---|
2.1.0 | 64 | 9/19/2022 |
2.0.0 | 67 | 9/19/2022 |
1.4.0-beta.1 | 0 | 8/5/2021 |
1.3.11 | 0 | 8/11/2021 |
1.3.7 | 0 | 8/3/2021 |
1.3.0 | 0 | 3/8/2021 |
1.3.0-beta.4 | 0 | 3/8/2021 |
1.3.0-beta.3 | 0 | 3/8/2021 |
1.3.0-beta.2 | 0 | 3/8/2021 |
1.3.0-beta.1 | 0 | 3/8/2021 |
1.2.1 | 0 | 3/8/2021 |
1.2.0 | 0 | 3/8/2021 |
1.1.0 | 32,428 | 3/8/2021 |
1.1.0-beta.1 | 0 | 3/8/2021 |
1.0.1 | 0 | 3/8/2021 |
1.0.0 | 2 | 3/8/2021 |
1.0.0-beta.6 | 0 | 3/8/2021 |
1.0.0-beta.5 | 0 | 3/8/2021 |
1.0.0-beta.4 | 0 | 3/8/2021 |
1.0.0-beta.3 | 0 | 3/8/2021 |
1.0.0-beta.2 | 0 | 3/8/2021 |
1.0.0-beta.1 | 0 | 3/8/2021 |
0.69.10 | 0 | 3/8/2021 |
0.69.9 | 0 | 3/8/2021 |
0.69.8 | 0 | 3/8/2021 |
0.69.7 | 0 | 3/8/2021 |
0.69.6 | 0 | 3/8/2021 |
0.69.5 | 0 | 3/8/2021 |
0.69.4 | 0 | 3/8/2021 |
0.69.3 | 0 | 3/8/2021 |
0.69.2 | 0 | 3/8/2021 |
0.69.1 | 0 | 3/8/2021 |
0.69.0 | 0 | 3/8/2021 |
0.68.1 | 0 | 3/8/2021 |
0.68.0 | 0 | 3/8/2021 |
0.67.0 | 0 | 3/8/2021 |
0.66.0 | 0 | 3/8/2021 |
0.65.0 | 0 | 3/8/2021 |
0.64.2 | 0 | 3/8/2021 |
0.64.1 | 0 | 3/8/2021 |
0.64.0 | 0 | 3/8/2021 |
0.63.2 | 0 | 3/8/2021 |
0.63.1 | 0 | 3/8/2021 |
0.63.0 | 0 | 3/8/2021 |
0.62.0 | 0 | 3/8/2021 |
0.62.0-beta7 | 0 | 3/8/2021 |
0.62.0-beta6 | 0 | 3/8/2021 |
0.62.0-beta5 | 0 | 3/8/2021 |
0.62.0-beta4 | 0 | 3/8/2021 |
0.62.0-beta3 | 0 | 3/8/2021 |
0.62.0-beta2 | 0 | 3/8/2021 |
0.62.0-beta1 | 0 | 3/8/2021 |
0.61.0 | 32,960 | 3/8/2021 |
0.60.4 | 0 | 3/8/2021 |
0.60.3 | 1 | 3/8/2021 |
0.60.3-beta1 | 0 | 3/8/2021 |
0.60.2 | 0 | 3/8/2021 |
0.60.1 | 0 | 3/8/2021 |
0.60.0 | 0 | 3/8/2021 |
0.60.0-beta1 | 0 | 3/8/2021 |
0.59.2 | 1 | 3/8/2021 |
0.59.1 | 0 | 3/8/2021 |
0.59.0 | 0 | 3/8/2021 |
0.58.0 | 0 | 3/8/2021 |
0.57.0 | 0 | 3/8/2021 |
0.57.0-rc1 | 0 | 3/8/2021 |
0.57.0-beta9 | 0 | 3/8/2021 |
0.57.0-beta8 | 0 | 3/8/2021 |
0.57.0-beta7 | 0 | 3/8/2021 |
0.57.0-beta6 | 0 | 3/8/2021 |
0.57.0-beta5 | 0 | 3/8/2021 |
0.57.0-beta4 | 0 | 3/8/2021 |
0.57.0-beta3 | 0 | 3/8/2021 |
0.57.0-beta2 | 0 | 3/8/2021 |
0.57.0-beta10 | 0 | 3/8/2021 |
0.57.0-beta1 | 0 | 3/8/2021 |
0.56.0 | 1 | 3/8/2021 |
0.55.0 | 0 | 3/8/2021 |
0.54.0 | 0 | 3/8/2021 |
0.53.0 | 0 | 3/8/2021 |
0.52.0 | 0 | 3/8/2021 |
0.51.1 | 0 | 3/8/2021 |
0.51.0 | 0 | 3/8/2021 |
0.50.0 | 1 | 3/8/2021 |
0.49.3 | 0 | 3/8/2021 |
0.49.2 | 4 | 3/8/2021 |
0.49.1 | 0 | 3/8/2021 |
0.49.0 | 0 | 3/8/2021 |
0.48.2 | 0 | 3/8/2021 |
0.48.1 | 0 | 3/8/2021 |
0.48.0 | 0 | 3/8/2021 |
0.48.0-rc2 | 0 | 3/8/2021 |
0.48.0-rc1 | 0 | 3/8/2021 |
0.48.0-beta3 | 0 | 3/8/2021 |
0.48.0-beta2 | 0 | 3/8/2021 |
0.48.0-beta1 | 0 | 3/8/2021 |
0.47.1 | 1 | 3/8/2021 |
0.47.0 | 0 | 3/8/2021 |
0.46.2 | 0 | 3/8/2021 |
0.46.1 | 0 | 3/8/2021 |
0.46.0 | 0 | 3/8/2021 |
0.45.1 | 0 | 3/8/2021 |
0.45.0 | 0 | 3/8/2021 |
0.44.1 | 1 | 3/8/2021 |
0.44.0 | 0 | 3/8/2021 |
0.43.0 | 0 | 3/8/2021 |
0.42.3 | 0 | 3/8/2021 |
0.42.2 | 0 | 3/8/2021 |
0.42.1 | 1 | 3/8/2021 |
0.42.0 | 0 | 3/8/2021 |
0.41.0 | 0 | 3/8/2021 |
0.40.4 | 9,468 | 3/8/2021 |
0.40.3 | 0 | 3/8/2021 |
0.40.2 | 0 | 3/8/2021 |
0.40.1 | 0 | 3/8/2021 |
0.40.0 | 0 | 3/8/2021 |
0.39.0 | 0 | 3/8/2021 |
0.38.0 | 0 | 3/8/2021 |
0.37.1 | 0 | 3/8/2021 |
0.37.0 | 0 | 3/8/2021 |
0.36.1 | 0 | 3/8/2021 |
0.36.0 | 0 | 3/8/2021 |
0.35.0 | 0 | 3/8/2021 |
0.34.2 | 0 | 3/8/2021 |
0.34.1 | 0 | 3/8/2021 |
0.34.0 | 0 | 3/8/2021 |
0.33.2 | 0 | 3/8/2021 |
0.33.1 | 0 | 3/8/2021 |
0.33.0 | 0 | 3/8/2021 |
0.32.0 | 0 | 3/8/2021 |
0.31.3 | 0 | 3/8/2021 |
0.31.2 | 0 | 3/8/2021 |
0.31.1 | 0 | 3/8/2021 |
0.31.0 | 0 | 3/8/2021 |
0.30.0 | 0 | 3/8/2021 |
0.29.4 | 0 | 3/8/2021 |
0.29.3 | 0 | 3/8/2021 |
0.29.2 | 0 | 3/8/2021 |
0.29.1 | 0 | 3/8/2021 |
0.29.0 | 0 | 3/8/2021 |
0.28.2 | 0 | 3/8/2021 |
0.28.0 | 0 | 3/8/2021 |
0.27.0 | 4 | 3/8/2021 |
0.26.5 | 1 | 3/8/2021 |
0.26.4 | 4 | 3/8/2021 |
0.26.3 | 0 | 3/8/2021 |
0.26.2 | 1 | 3/8/2021 |
0.26.1 | 2 | 3/8/2021 |
0.26.0 | 0 | 3/8/2021 |
0.25.1 | 1 | 3/8/2021 |
0.25.0 | 1 | 3/8/2021 |
0.24.2 | 0 | 3/8/2021 |
0.24.1 | 0 | 3/8/2021 |
0.24.0 | 0 | 3/8/2021 |
0.23.0 | 1 | 3/8/2021 |
0.22.0 | 0 | 3/8/2021 |
0.21.0 | 0 | 3/8/2021 |
0.20.2 | 0 | 3/8/2021 |
0.20.1 | 0 | 3/8/2021 |
0.20.0 | 0 | 3/8/2021 |
0.19.5 | 0 | 3/8/2021 |
0.19.4 | 0 | 3/8/2021 |
0.19.3 | 0 | 3/8/2021 |
0.19.2 | 8 | 3/8/2021 |
0.19.1 | 0 | 3/8/2021 |
0.19.0 | 0 | 3/8/2021 |
0.18.3 | 0 | 3/8/2021 |
0.18.2 | 0 | 3/8/2021 |
0.18.1 | 0 | 3/8/2021 |
0.18.0 | 0 | 3/8/2021 |
0.17.0 | 0 | 3/8/2021 |
0.16.2 | 1 | 3/8/2021 |
0.16.1 | 0 | 3/8/2021 |
0.16.0 | 0 | 3/8/2021 |
0.15.1 | 0 | 3/8/2021 |
0.15.0 | 0 | 3/8/2021 |
0.14.1 | 0 | 3/8/2021 |
0.14.0 | 0 | 3/8/2021 |
0.13.0 | 0 | 3/8/2021 |
0.12.0 | 0 | 3/8/2021 |
0.11.6 | 0 | 3/8/2021 |
0.11.5 | 0 | 3/8/2021 |
0.11.4 | 0 | 3/8/2021 |
0.11.3 | 0 | 3/8/2021 |
0.11.2 | 0 | 3/8/2021 |
0.11.1 | 0 | 3/8/2021 |
0.11.0 | 0 | 3/8/2021 |
0.10.0 | 0 | 3/8/2021 |
0.9.2 | 0 | 3/8/2021 |
0.9.1 | 0 | 3/8/2021 |
0.9.0 | 0 | 3/8/2021 |
0.8.0 | 0 | 3/8/2021 |
0.7.4 | 0 | 3/8/2021 |
0.7.3 | 5 | 3/8/2021 |
0.7.2 | 0 | 3/8/2021 |
0.7.1 | 0 | 3/8/2021 |
0.7.0 | 0 | 3/8/2021 |
0.6.2 | 0 | 3/8/2021 |
0.6.1 | 0 | 3/8/2021 |
0.6.0 | 0 | 3/8/2021 |
0.5.0 | 0 | 3/8/2021 |
0.4.0 | 1 | 3/8/2021 |
0.3.0 | 0 | 3/8/2021 |
0.2.1 | 0 | 3/8/2021 |
0.2.0 | 0 | 3/8/2021 |
0.1.0 | 0 | 3/8/2021 |
0.1.0-alpha26 | 0 | 3/8/2021 |
0.1.0-alpha25 | 0 | 3/8/2021 |
0.1.0-alpha24 | 0 | 3/8/2021 |
0.1.0-alpha23 | 0 | 3/8/2021 |
0.1.0-alpha22 | 0 | 3/8/2021 |
0.1.0-alpha21 | 0 | 3/8/2021 |
0.1.0-alpha20 | 0 | 3/8/2021 |
0.1.0-alpha19 | 0 | 3/8/2021 |
0.1.0-alpha18 | 0 | 3/8/2021 |
0.1.0-alpha17 | 0 | 3/8/2021 |
0.1.0-alpha16 | 0 | 3/8/2021 |
0.1.0-alpha15 | 0 | 3/8/2021 |
0.1.0-alpha14 | 0 | 3/8/2021 |
0.1.0-alpha13 | 0 | 3/8/2021 |
0.1.0-alpha12 | 0 | 3/8/2021 |
0.1.0-alpha11 | 0 | 3/8/2021 |
0.1.0-alpha10 | 0 | 3/8/2021 |
0.1.0-alpha09 | 0 | 3/8/2021 |
0.1.0-alpha08 | 0 | 3/8/2021 |
0.1.0-alpha07 | 0 | 3/8/2021 |
0.1.0-alpha06 | 0 | 3/8/2021 |
0.1.0-alpha05 | 0 | 3/8/2021 |
0.1.0-alpha04 | 0 | 3/8/2021 |
0.1.0-alpha03 | 0 | 3/8/2021 |
0.1.0-alpha02 | 0 | 3/8/2021 |
0.1.0-alpha01 | 0 | 3/8/2021 |