A tool to backup and restore MySQL database in C#/VB.NET/ASP.NET.

There is a newer version of this package available.
See the version list below for details.
Install-Package MySqlBackup.NET -Version
dotnet add package MySqlBackup.NET --version
<PackageReference Include="MySqlBackup.NET" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MySqlBackup.NET --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

For binary support of .NET 2.0, .NET 4.0, .NET 4.5, please visit the project website at release section.

Change Log for
update MySql.Data dependency version 8.0.17

Change log for v2.3:
Drop Internal build-in encryption
Drop feature: ExportInfo.EnableEncryption
Drop feature: ExportInfo.EncryptionPassword
Drop feature: ImportInfo.EnableEncryption
Drop feature: ImportInfo.EncryptionPassword
Drop feature: ImportInfo.TargetDatabase
Drop feature: ImportInfo.DatabaseDefaultCharSet
Drop feature: ExportInfo.GetTotalRowsBeforeExport
Add feature: ExportInfo.GetTotalRowsMode
Add feature: ExportInfo.AddDropDatabase
Add feature: ExportInfo.AddDropTable
Add feature: ExportInfo.TextEncoding
Enhance: Improve sorting algorithm of TABLEs' foreign key dependencies sequence.
Enhance: Improve sorting algorithm of VIEWs' dependencies sequence.
Enhance: Improve Importing handling algorithm, drop unnecessary checking which slow down the process
Fix bug: Data conversion of microseconds between .NET and MySQL is not handled correctly.
Drop: Delete an unnecessary line 136 in MySqlBackup.cs which causes some unwanted behaviour in some circunstances: (AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;)
Fix bug: During import with IgnoreSqlError, if an error occur, the input SQL error text is not cleared and causing the next SQL statement to be error as it appends to the previous error statement.
Fix bug: While manually define ExportInfo.TablesToBeExportedDic or ExportInfo.TablesToBeExportedList, the existence of the defined tables is not checked in database, which might causing exporting a non-existing table.
Enhance: SQL syntax error from dump content is handled more properly.
Enhance: Some other minor edit to enhance the stability of the library.
Enhance: WinForm Test App is updated for testing new features.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on MySqlBackup.NET:

Repository Stars
Repository for Shoko Server.

Version History

Version Downloads Last updated 1,500 7/16/2020
2.3.1 18,481 8/23/2019 3,901 7/26/2019
2.3.0 1,986 6/24/2019
2.2.1 7,383 4/7/2019
2.2.0 324 4/7/2019
2.1.0 6,797 12/1/2018 4,363 8/28/2018
2.0.12 16,334 3/26/2018 3,592 2/7/2018
2.0.11 610 2/7/2018 2,829 12/2/2017
2.0.10 764 12/1/2017 19,651 11/19/2016 6,167 3/20/2016 6,736 1/9/2016 4,178 8/8/2015 710 7/24/2015
2.0.9 762 7/19/2015
2.0.8 2,181 2/24/2015 6,825 1/26/2015
2.0.6 1,122 11/21/2014 878 10/20/2014
2.0.5 583 10/20/2014
2.0.4 1,664 5/12/2014
2.0.3 595 5/11/2014 931 4/10/2014