![]() |
VOOZH | about |
dotnet add package FAkka.MySqlConnector --version 10.0.201
NuGet\Install-Package FAkka.MySqlConnector -Version 10.0.201
<PackageReference Include="FAkka.MySqlConnector" Version="10.0.201" />
<PackageVersion Include="FAkka.MySqlConnector" Version="10.0.201" />Directory.Packages.props
<PackageReference Include="FAkka.MySqlConnector" />Project file
paket add FAkka.MySqlConnector --version 10.0.201
#r "nuget: FAkka.MySqlConnector, 10.0.201"
#:package FAkka.MySqlConnector@10.0.201
#addin nuget:?package=FAkka.MySqlConnector&version=10.0.201Install as a Cake Addin
#tool nuget:?package=FAkka.MySqlConnector&version=10.0.201Install as a Cake Tool
MySqlConnector is a C# ADO.NET driver for MySQL, MariaDB, Amazon Aurora, Azure Database for MySQL and other MySQL-compatible databases.
More documentation is available at the MySqlConnector website.
// 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");
// ...
}
The main types provided by this library are:
MySqlConnection (implementation of DbConnection)MySqlCommand (implementation of DbCommand)MySqlDataReader (implementation of DbDataReader)MySqlBulkCopyMySqlBulkLoaderMySqlConnectionStringBuilderMySqlConnectorFactoryMySqlDataAdapterMySqlExceptionMySqlTransaction (implementation of DbTransaction)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 | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on FAkka.MySqlConnector:
| Package | Downloads |
|---|---|
|
FAkka.Shared
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.201 | 430 | 4/6/2026 |
| 10.0.103.2-dgx | 201 | 3/10/2026 |
| 10.0.103.1-dgx | 105 | 3/10/2026 |
| 9.0.1 | 676 | 9/8/2024 |
| 1.0.1 | 1,025 | 2/13/2023 |
| 1.0.0 | 453 | 1/21/2023 |