I posted this question on ServerFault but was told to ask it here.

I need to set up multi-source replication (3 masters and 1 slave). I'd like to avoid replicating users' changes on the slave because it breaks replication.

I've followed this : https://serverfault.com/questions/865487/mysql-replication-failing-on-mysql-user-changes but it didn't seem to work.

I've tried different configurations but none works.

  • Ignore table mysql on the slave :
  • Ignore table mysql for each connection on the slave:
  • Ignore the mysql table in the master's binlog :

I'm working with Mariadb 10.6 on Debian 9. The master's binlog format is ROW.

I'm still getting errors in the replication regarding users changes. How can I make the replication ignore the users' changes ?

  • 1
    (Yes, this is a better place for this type of question.) You want to block all writes to mysql from replicating? Show an example of a query that is causing trouble, and the error message.
    – Rick James
    Jan 11, 2022 at 17:18

1 Answer 1


As user changing SQL like ALTER USER etc is replicated as a statement, to prevent the replication of those, use SET SQL_LOG_BIN=0 in the session where the SQL is executed. Sorry, replication filtering won't help.

ref: sql_log_bin in Knowledge base.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.