Sumeet Chakraborty wrote:Hi all
I am trying to build a java utility which will enable me to take the backup of my MySql Database. I want the backup to be taken and dumped in a sql file in some location of my file system. Is there any way I could do it using Java code ? I searched a lot but didn't get any satisfying solution
Please help.
Thanks and Regards
Sumeet
Hi Sumeet, I created a solution myself. Please take a look and get if you think it will be useful.
It is not a complex solution, I used some SHOW CREATE and SELECT commands and parsed the strings.
I Tried to make it look alike to a backup you take from Navicat software.
Here is the code.