Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 88873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:37:41+00:00 2026-05-10T22:37:41+00:00

My question is a lot like this one . However I’m on MySQL and

  • 0

My question is a lot like this one. However I’m on MySQL and I’m looking for the ‘lowest tech’ solution that I can find.

The situation is that I have 2 databases that should have the same data in them but they are updated primarily when they are not able to contact each other. I suspect that there is some sort of clustering or master/slave thing that would be able to sync them just fine. However in my cases that is major overkill as this is just a scratch DB for my own use.

What is a good way to do this?

My current approach is to have a Federated table on one of them and, every so often, stuff the data over the wire to the other with an insert/select. It get a bit convoluted trying to deal with primary keys and what not. (insert ignore seems to not work correctly)

p.s. I can easily build a query that selects the rows to transfer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:37:42+00:00Added an answer on May 10, 2026 at 10:37 pm

    My current solution is

    • set up a federated table on the source box that grabs the table on the target box
    • set up a view on the source box that selects the rows to be updated (as a join of the federated table)
    • set up another federated table on the target box that grabs the view on the source box
    • issue an INSERT...SELECT...ON DUPLICATE UPDATE on the target box to run the pull.

    I guess I could just grab the source table and do it all in one shot, but based on the query logs I’ve been seeing, I’m guessing that I’d end up with about 20K queries being run or about 100-300MB of data transfer depending on how things happen. The above setup sold result in about 4 queries and little more data transfered than actually needed to be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I believe using ilike('filename', '%${params.fileSearchKey}%') ilike('referenceFilename', '%${params.fileSearchKey}%') is the way… May 11, 2026 at 12:35 pm
  • added an answer You won't believe this, but here's what Kent Beck had… May 11, 2026 at 12:35 pm
  • added an answer You are looking for the navigateToURL() function. May 11, 2026 at 12:35 pm

Related Questions

My question is a lot like this one . However I'm on MySQL and
My question is possibly a subtle one: Web services - are they extensions of
This question is a follow up to my previous question about getting the HTML
My question is about when a function should be referenced with the extern keyword
My question is the following. I have xml that is versioned by a namespace.
My question is a simple one, but I can't seem to find the answer.
I've got a problem that keeps coming up with normalized databases and was looking
A lot of programming languages and frameworks do/allow/require something that I can't seem to
I build and maintain a set of Flash components that is distributed to publishers

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.