Report this

What is the reason for this report?

Master-Master SQL DB on same VPS

Posted on February 22, 2019

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.



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!

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.

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

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.