WordPress with MariaDB Master Slave Replication in CentOS 7
-
Hi,
I set up a MariaDB Master Slave Replication using many resources on the internet. So far, it’s good. Every new database created got replicated to the slave.
I then proceed to install WordPress on the master db. All this goes smooth.
However, when I create a blogpost, the replication does not work.
I got this error from the slave:
Could not execute Write_rows event on table testblog2.wp_options; Duplicate entry ‘132’ for key ‘PRIMARY’, Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event’s master log mariadb-bin.000001, end_log_pos 1170967This is a new server installation, both master and slave using CentOS 7.2 and MariaDB 5.5.52.
After searching on how to bypass this error, replication is normal again. Then, I tried creating another post, and the replication is halted again.
I stumbled upon this post:
https://www.ads-software.com/support/topic/recommended-setup-for-mysql-replication/
in which recommends that Percona to be used instead of MariaDB.I was wondering whether there are new information or not regarding this issue. I will try to use Percona, but if i can keep to use both MariaDB as DBMS, I’d like that.
- The topic ‘WordPress with MariaDB Master Slave Replication in CentOS 7’ is closed to new replies.