This is the code I tried for exporting the database.
//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);
I get the following error :
***Cannot run program """C:\Program": CreateProcess error=87, The parameter is incorrect***
How can I solve this?
Try this :
Java 1.4.2