This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to restore mysql backup using java swing   Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

How to restore mysql backup using java swing

Shashika Thiran
Greenhorn

Joined: Jan 22, 2009
Posts: 24
want restore mysql backup file(c:/backup.sql) using java swing.
it's work with dos prompt like this
mysql -u uname -ppword Dname<C:/backup.sql

how can i execute this in java swing.
can anyone help me..
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Why does this need to be in Swing?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Shashika Thiran
Greenhorn

Joined: Jan 22, 2009
Posts: 24
Any way, i want to backup and restore(import and export) MYSQL database using java application(if swing that better) please help me

thank you
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

This is a duplicate thread, locking this and contuing in the other
 
Consider Paul's rocket mass heater.
 
subject: How to restore mysql backup using java swing