aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to restore mysql backup using java swing