E:\cs.sql"); 方法2: ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = "cmd.exe"; psi.Arguments = "/c mysqldump -h"/> E:\cs.sql"); 方法2: ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = "cmd.exe"; psi.Arguments = "/c mysqldump -h">
Home > Database > Mysql Tutorial > C#中用代码控制命令来备份mysql的数据,可是备份不了,怎么回事??

C#中用代码控制命令来备份mysql的数据,可是备份不了,怎么回事??

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:38:33
Original
902 people have browsed it

mysql备份数据c#代码

方法1:
Process.Start("cmd.exe", "/c mysqldump -hlocalhost -P3306 -uroot –p12111 samp_db1 > E:\cs.sql");
方法2:
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "cmd.exe";
psi.Arguments = "/c mysqldump -hlocalhost -P3306 -uroot –p12111 samp_db1 > E:\cs1.sql";
Process.Start(psi);
方法1、2怎么备份后,都 没有效果,文件大小为0
是不是我什么地方弄错了或是少了什么,麻烦大师指点一下,谢谢。

顺道问一下还原是吧 > 改成

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template