I have 2 MySQL databases with same table structure but on different servers. I want to make it that when the database on server 1 is updated, the database on the server 2 is also updated, and vice versa. Can I do it in MySQL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
What you are looking for is two-way replication. You can read up on why not to do it with mysql here If you must, mysql supports it, but it doesn’t guarantee atomicity of the operations involved, which will lead to inconsistencies at some point.
I stronly advise against this.