Level 25
Your best bet is Replication. Which can be achived with MySQL Replication have look 👇 https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I wanna connect mydomain with two similar databases and when any change happen in any table in one of them, the same table in the other database should changes.
Is there any way to get this done using PHP & MYSQL
Your best bet is Replication. Which can be achived with MySQL Replication have look 👇 https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql
Please or to participate in this conversation.