If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > MySQL++

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-09, 07:35
liorm liorm is offline
Registered User
 
Join Date: Nov 2009
Posts: 4
MySQL++

I'm developing an application which connects to a MySQL server.

My quesiton is:
Is there any option that when the server is down, my INSERT queries, will be saved in a buffer, and when the server is back online, the buffer will be executed into the server?

Any ideas? is this linked to MySQL Proxy in some way?


Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-29-09, 07:40
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 8,761
Im not aware of anything like that built into MySQL, but presumably its easy enough to write those queries to a flat fiel, and then red 'em back from the file when the server is active again. you'd need to be leetle bit clever about file locks. I suppose you could go for a slightly more refined approach, each task write to its own timestamped file. then you have a periodic task, say a cron job or windows scheduler, which picks up all those individual files and stuffs 'em into a single file and deltes the individual files, then tries to execute those statements, if they succeed the big file is killed, if not the big file stays there til they do succeed
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On