这是我尝试导出数据库的代码。
//MysqlPath = "C:\Program Files\MySQL\MySQL Server 5.1\bin\"
String executeCmd = "\"" +Mysqlpath+ " mysqldump -u " + dbUser
+ " -p" + dbPass + " " + dbName + " -r " + FilePath + "\\"
+ FileName;
System.out.println(executeCmd);
Process runtimeProcess = Runtime.getRuntime().exec(executeCmd);
我收到以下错误:
***Cannot run program """C:\Program": CreateProcess error=87, The parameter is incorrect***
我该如何解决这个问题?