Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get automatic backup from mysql?

 
vijay Panner
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 48957
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic