I was able to create a backup of my current mysql database as .SQL file using the mysqldump.exe with the help of the following java code. <
For restore use the executeCmd in the form m.Torkashvand provided (array of strings). A working example on how to use these commands from JSP code can be found here
executeCmd
m.Torkashvand