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 6648567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:40:15+00:00 2026-05-26T00:40:15+00:00

I already read a few threads here and I also went through the MySQL

  • 0

I already read a few threads here and I also went through the MySQL Replication Documentation (incl. Cluster Replication), but I think it’s not what I really want and propably too complicated, too.

I got a local and a remote DB that might get both accessed/manipulated by 2 different persons at the same time. What I’d like to do is to sync them as soon as possible (means instantly or as soon the local machine goes online). Both DB’s only get manipulated from my own PHP Scripts.

My approach is the following:

If local machine is online:

  1. Let my PHP Script on the loal machine always send the SQL Query to the remote DB too
  2. Let my PHP Script on the remote machine always store its queries and…
  3. …let the local machine ask the remote DB every x minutes for new queries and apply them locally.

If local machine is offline:

Do step 2. also for both machines and send the stored queries to the remote DB as soon as
local machine goes online again. Also pull the queries from the remote machine for sure.

My questions are:

  1. Did I just misunderstand Replication or am I right that my way would be easier in my case? Or is there any other good solution for what I’m trying to accomplish?
  2. Any idea how I could check whether my local machine is online/offline? I guess I’d have to use JavaScript, but I don’t know how. The browser/my script would always be running on the local machine.
  • 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. Editorial Team
    Editorial Team
    2026-05-26T00:40:15+00:00Added an answer on May 26, 2026 at 12:40 am

    What you’re describing is master-master or multi-master replication. There are plenty of tutorials on how to set this up across the web. Definitely do your research before putting a solution like this into production as replication in MySQL isn’t exactly elegant — you need to know how to recover if (when?) something goes wrong.

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

Sidebar

Related Questions

I've already read through a few of the answers on this site but none
Read a few things online and here but am now confused. What I want
I already read many article about this issue in here, SO. I just want
I already read the datasheet and google but I still don't understand something. In
From what I've already read this appears to be impossible, but I wanted to
Following the discussions here on SO I already read several times the remark that
I know there are plenty of questions here already about this topic (I've read
I know there's quite a few topics on this already, and I've read quite
I've read a few explanations for a broken git push, but none of them
I've read on few places already, that it's possible to combine XNA and WPF.

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.