Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get mysql backup using java swing>

807580Jun 10 2009 — edited Dec 29 2009
I use mysqldump to get mysql database backup.it's work fine when i try it on dos prompt.
like this..
mysqldump -u uname -ppassword databaseName>C:/backup.sql
this will create backup.sql file.
then i try this in java
try{
Runtime rt=Runtime.getRuntime();
rt.exec("C:/Programme Files/MySQL/MySQL Server 5.0/bin/mysqldump -u uname -ppassword >databaseName>C:/backup.sql");
catch(IoException e){}
It's runs without errors.But nothing happen.No file create.
Can anyone tell me why this is not work...
can anyone help me..

Edited by: Sasika on Jun 10, 2009 2:32 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2010
Added on Jun 10 2009
5 comments
528 views