backup mysql database java code

前端 未结 3 888
终归单人心
终归单人心 2020-12-10 19:12

I tried to run the following code which is to create a backup of my database but it shows some run time errors.

But, I tried to run the Syst

3条回答
  •  有刺的猬
    2020-12-10 19:58

    runtimeProcess = Runtime.getRuntime().exec(new String[] { "cmd.exe", "/c", executeCmd });

    i tried this one but it didn't work so i replaced it with

    this runtimeProcess = Runtime.getRuntime().exec(executeCmd);

    and it worked

提交回复
热议问题