Question

Master-Master SQL DB on same VPS

Hello We want two MySQL databases be synchronized as Master-Master when they are both on the same VPS. We are using Plesk on Ubunto 18.04, and have two Wordpress sites… I found this article: https://www.digitalocean.com/community/tutorials/how-to-configure-mysql-group-replication-on-ubuntu-16-04 But it is for different servers. We can accept a solution that uses a third party service or plugin if it is not possible in a similar way like in the mentioned article. We do not want a multisite installation and it must be on different installations. Thank you in advance.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @Cryptoshade:

Hello, Jerald In fact, while answering your question I discovered that using Multisite installation with different domains answers the questions. My concerns were mostly related to security and allowing separate administration for each installation. Overall, doing all that with Multi domain installation is much more convenient that the solution I was seeking. The idea is to have:

  • User accounts synchronized.
  • Certain plugin tables data to be synchronized in real time. The concerned plugins are Network aware and therefor this is done with their built-in capabilities.

I appreciate your note, and I hope this will help others. Wordpress now supports multi-domains as a core feature without the need to use a plugin. And, it is a chance to express that if you use Cloudflare DNS then the Cloudflare SSL plugin is a must have to solve the issue of infinite redirection. Thanks again. . . Shadi

View the original comment