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

  • SEARCH
  • Home
  • 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 7498675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:33:27+00:00 2026-05-29T19:33:27+00:00

I have several mysql databases and tables that need to be listened to. I

  • 0

I have several mysql databases and tables that need to be “listened to”. I need to know what data changes and send the changes to remote servers that have local mirrors of the database.

How can I mirror changes in the mysql databases? I was thinking of setting up mysql triggers that write all changes to another table. This table has the database name, table name, and all of the columns. I’d then write custom code to transfer the changes and install them periodically on the remote mirrors. Will this accomplish my need?

  • 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-29T19:33:31+00:00Added an answer on May 29, 2026 at 7:33 pm

    Your plan is 100% correct.

    That extra table is called an “audit” or “history” table (there are subtle distinctions but you shouldn’t much care – but you now have the “official” terms which you can use to do further research).

    If the main table has columns A, B, C, then the audit would have 3 more: A, B, C, Operation, Changed_By, Change_DateTime (names are subject to your tastes and coding standards).

    “Operation” column stores whether the change was an insert, delete, old value of update or new value of update (frequently it’s 3 characters wide and the operations as “INS”/”DEL”/”U_D” and “U_I”, but there are other approaches).

    The data in the audit table is populated via a trigger on the main table.

    Then make sure there’s an index on Change_DateTime column.

    And to find a list of changes, you keep track of when you last polled, and then simply do

    SELECT * FROM Table_Audit WHERE Change_DateTime > 'LAST_POLL_TIME'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some MySQL databases that have several tables that contain (amongst others) some
I have a project that requires us to maintain several MySQL databases on multiple
Let's say we have system A comprising a MySQL database, with several tables. After
I have a mysql table that have several records linked to one particular tag.
I'm using Castle ActiveRecord in a warehouse project. I have several tables that get
I have a PHP codebase that was written to address our MySQL tables in
I have several (old) Drupal-sites that need to be replaced with one single new
I have a set of InnoDB tables that I periodically need to maintain by
I have a mysql database with a table that has several fields including: enter_date
We occasionally have to make schema changes to mysql or mssql based production databases.

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.