wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Backup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Backup" Watch "Backup" New topic
Author

Backup

Shashika Thiran
Greenhorn

Joined: Jan 22, 2009
Posts: 24
I want to get mysql data Backup using java swing.
I try to do it using mysqldump but it,s not work for me.
any idea



Runtime rt = Runtime.getRuntime();
rt.exec("c:\\Program files\\MySQL\\MySQL Server 5.1\\bin\\mysqldump -u=user -p=pass database >C:/backup.sql");

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995
    
    7

Can you please elaborate on "it is not working"?
Remember, it always helps to tell the details

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Backup
 
Similar Threads
Hi , i am using belowcode for automatically execute backup of mysql database
How to backuping data by using Hibernate?..
How to invoke mysql backup command in java ? (mysqldump)
Embedding MySQL Database in Java Application
Back of database