How to create mysql database backup with c #

0

What I want is with a simple click on an option, a window appears to save the backup of the database.

A dialog box in which the Backup can be stored anywhere.

    
asked by fredmar 19.10.2017 в 03:25
source

1 answer

0

Call mysqldump in oclick with the name of the database. For this you need to have installed mysqldump in the client and have in the path the installation path of mysqldump .

strCmdText= "mysqldump.exe --databases mydatabase -uroot -padmin --result-file=file.sql";
System.Diagnostics.Process.Start("CMD.exe",strCmdText);
    
answered by 19.10.2017 / 04:39
source