This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

replication issue for 4 servers

I have 4 mariadb servers. - data update on server_id=1, data will replicate to all 3 servers (2,3,4) - data update on server_id=2, data will replicate to server-1. but after the server-1 got the changes, the server (3,4) will not get updated.

Please help.

server 1 (MASTER/SLAVE):
[mariadb]
log-bin
server_id=1
log-basename=master1
binlog-format=mixed
auto-increment-increment=2
auto-increment-offset=1

server 2 (MASTER/SLAVE):
[mariadb]
server-id=2
log-bin
log-basename=master2
binlog-format=mixed
auto-increment-increment=2
auto-increment-offset=2

server 3 (SLAVE):
[mariadb]
server_id=3

server 4 (SLAVE):
[mariadb]
server_id=4

Answer Answered by Daniel Black in this comment.

log_slave_updates is needed on replication slaves that replicate to other servers. So I assume in your case server_id=1,2

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.