It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Backup" Watch "Backup" New topic


Shashika Thiran

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: 10767

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!]
I agree. Here's the link:
subject: Backup
It's not a secret anymore!