Irish SEO,  Marketing & Webmaster Discussion

 

Synchronise DBs

This is a discussion on Synchronise DBs within the Coding Help forums, part of the Webmaster Help category; Hi folks, I have two sites with their own DBs. When something happens on one site, i want to update ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Calendar Search Today's Posts Mark Forums Read

  #1 (permalink)  
Old 30-07-2008, 12:33 AM
Coder
 
Join Date: Jul 2008
Posts: 53
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
WoodenToys.ie will become famous soon enough
Default Synchronise DBs

Hi folks,

I have two sites with their own DBs. When something happens on one site, i want to update the DB on the other site.

Trouble is the DBs seem to be on different servers. What are my options?

Ideally I would like the update to occur instantly, but I could live with it if it were to happen daily.

How can I do this? Get site 1 to write a db script and set up a chron job on the other to suck it in? That seems messy. But how would I get the file from account 1 on server A to account 2 on server B?

Thanks in advance folks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 30-07-2008, 09:18 AM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 7,241
blacknight will become famous soon enoughblacknight will become famous soon enoughblacknight will become famous soon enoughblacknight will become famous soon enoughblacknight will become famous soon enoughblacknight will become famous soon enoughblacknight will become famous soon enoughblacknight will become famous soon enough
Default

So is one of the databases always sending data to the other or is it going in both directions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 30-07-2008, 11:34 AM
Coder
 
Join Date: Jul 2008
Posts: 53
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
WoodenToys.ie will become famous soon enough
Default

Going in both directions actually...

I've been thinking... I've probably been making this more complicated than it needs to be... I guess there's no reason I can't have both sites talking to both databases... I assume it's just a matter of the db server accepting connections from the ip address of both sites?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 30-07-2008, 05:26 PM
Frontpage User
 
Join Date: Jul 2008
Location: Wicklow
Posts: 6
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
KevinG will become famous soon enough
Default

Any chance you could get away with just one database which both sites access? It seems that most of the complication comes from having 2 DBs! I suppose this would only be an option if there were a lot of shared data between the two...

Which DBMS are you using? some have special tools for syncing DBs - but it's always going to be rather complicated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
dbs, synchronise

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Sponsored links

Pepperjam Network
Paid On Results www.zanox.com


All times are GMT +1. The time now is 02:06 PM.


Powered by: vBulletin Version 3.8.2, Copyright ©2000 - 2009, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51