This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how  to get automatic backup from mysql? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how  to get automatic backup from mysql?" Watch "how  to get automatic backup from mysql?" New topic
Author

how to get automatic backup from mysql?

vijay Panner
Ranch Hand

Joined: Sep 29, 2010
Posts: 30
Hi,

I am developing an application using Swing. In this application, i need to get database backup from database automatically when we close application. how does i do this?please
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38075
    
  22
I can think of two ways to achieve what you want. There are probably more.
  • 1: Add a shut down hook to your runtime.
  • 2: Add a WindowListener to your outermost (parent) frame.
  • Both those objects should call code to update the database.
     
     
    subject: how to get automatic backup from mysql?
     
    Similar Threads
    Export data from database
    Triggers
    Having a web application in my cmpnys domain but its backup size is increasing impacting the perform
    Backing up database through java
    Need External Back Up in Java Web Application