Answer the question
In order to leave comments, you need to log in
Replication or your own script?
Hello! There are 2 similar databases on the same server with one common user. What is the best way to set up synchronization of 2 identical tables from the first database to the second one (not all data needs to be synchronized, but only by certain IDs).
Is replication suitable here or is it better to write your own php script and run it via CRON.
Answer the question
In order to leave comments, you need to log in
If on the same server, then it is easier with a mysql trigger to immediately synchronize it to the second database when you change the desired record in the first database.
https://dev.mysql.com/doc/refman/5.5/en/trigger-sy...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question