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.
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.
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);