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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:23:30+00:00 2026-05-23T22:23:30+00:00

I have two completely different MySQL databases and they both have their own user

  • 0

I have two completely different MySQL databases and they both have their own user table schemes. I want to synchronize user tables (in real time) so, when a user is added to either database, the other one should be updated accordingly. My question is, is it possible to do that kind of synchronization? If yes, what are/is the effective ways/way to do this?

  • 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-23T22:23:31+00:00Added an answer on May 23, 2026 at 10:23 pm

    Yes, it’s possible, but since your schema are different, the best way is just to do it manually; in the code that updates one of the databases, simply have it appropriately update the other database. This is pretty much necessary because your schemas are different; you’re effectively implementing a manual mapper which is invoked at update time.

    There ARE other ways to do it, but this is the simplest to put in place, and is very effective.

    Edit: Okay, other ways to do this: Have a regular job (cronjob or similar) which queries one table based upon update since last query, and propagates those updates to the second table; this method suffers from potential, lag, however. Alternatively, you could do something based upon triggers for each user table, but I’d recommend avoiding this approach, since it introduces some potentially serious execution time increases, depending on how the triggers are implemented. But I’d still say the far simplest way is to modify your user table update code to modify both tables instead of just one.

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

Sidebar

Related Questions

Suppose I have two boolean variables, and I want to do completely different things
I have two completely different forms in one template. How to process them in
I have two transactions managers defined in applicationContext, referencing two completely different sessionFactories. I
OK, so I have two (completely unrelated, different project) classes using iterators now. One
I have related data living on two completely separate databases, and I need information
I want to have the equivalent of two completely unrelated tables in my database,
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
I have two identical tables and need to copy rows from table to another.
I have two classes, and want to include a static instance of one class
Alright, so I have a table outputting data from a MySQL table in a

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.