Click here to Skip to main content
15,912,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my code

C#
ProcessStartInfo startInfo = new ProcessStartInfo("cmd.exe");
Process.Start(startInfo);
startInfo.Arguments = "mysqldump -u admin -p admin -h host test > c:\backupfile.sql";
Process.Start(startInfo);


i have tried it by reading all file text and store it in string and execute using mysqlcmd.executenonquery() but it generate database tables only not stored procedures and other objects.

thank you
Posted
Updated 21-Sep-13 13:27pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900