Ok, my Java application is not able to perform a mysqldump backup using the windows runtime enviroment. I have printout code for caught exceptions and I see no exceptions being thrown, looks fine on the surface when the backup code is executed.
I have also tested the mysqldump command in the command-line console; and it works with no issue there.
Code:
Runtime rt = Runtime.getRuntime();
try {
Process pr = rt.exec("mysqldump -u test --password=pass lager > newBackup.sql");
} catch (IOException ex) {
System.out.println("IO error Runtime. "+ex.getMessage());
}
Does anyone know why it will not dump/backup the database? Is there some permission I need to add or something (running windows 7).