File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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: 10167
    
    8

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!]
 
 
subject: Backup
 
Similar Threads
Hi , i am using belowcode for automatically execute backup of mysql database
How to invoke mysql backup command in java ? (mysqldump)
Back of database
How to backuping data by using Hibernate?..
Embedding MySQL Database in Java Application