Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This is excellent, Followed it by example, then set up my master-master-slave from there. Thanks D.O.
@Marlon: Thanks for the awesome feedback! I’m really glad to hear that this article was helpful to you :]
Karmal, cool!
I hate posting again, but I forgot something. I could be way off, but I think adding the auto_increment and auto_increment_offset directives might be a good idea for master-master, as this could save folks from potential PK conflicts, or users could investigate this for themselves: http://dev.mysql.com/doc/refman/5.7/en/replication-options-master.html#sysvar_auto_increment_increment So on Server C: 2/1 and for server D: 2/2 or something like that.
How about if you have an existing database and want to set up master-master? What needs to be changed for this scenario?
@rmang: This article should still work even if you have an already existing mysql setup.
These guys have a really good replication configurator http://www.severalnines.com/
what is the minimal MySQL version that supports this model? 5.0, 5.1, 5.5, 5.6???
@vguhesan+do: Replication capabilities enabling the databases on one MySQL server to be duplicated on another were introduced in MySQL 3.23.15.
Kamal, great article. Congratulations.
Now I have one scenario on hand. We have 2 servers under one physical load balancer. Its configured using round robin method. Now we know the content / file replication or synchronization wont be an issue but can we have the same database on both dedicated servers ( under same network! ) and do real-time replication using your method or you suggest something else?
We did consider rsync for mysql as well but it can be tricky as the db has to be stopped while replicating and all.
Can you please advice?
Thanks in advance mate.
@masud: I recommend using one separate database server and having it accessible by both web servers so that they access the exact same data.