-
UID:168802
-
- 注册时间2015-12-31
- 最后登录2016-12-13
- 在线时间25小时
-
- 发帖22
- 搜Ta的帖子
- 精华0
- 金钱210
- 威望31
- 贡献值0
- 好评度21
-
访问TA的空间加好友用道具
|
我在网上找了如下方法,但生成的备份 文件大小是0KB - QString Cmd = QString("D://mysql-5.6.26-winx64//bin//mysqldump.exe --add-drop-table -u%1 -p%2 test").arg("root").arg("");
- QString Path = QString("%1").arg("D://backup.sql");
- QProcess *poc=new QProcess;
- poc->setStandardOutputFile(Path);
- poc->start(Cmd);
|