简体   繁体   中英

Mariadb master-slave replication - can binlog-ignore-db be added to an existing setup?

I am using MariaDB 5.5.65 with a single-master, multiple-slave replication setup.

Here's a snippet from my.cnf:

binlog_format=ROW
log-bin=/data/mysql/pccodb22-binlog
expire_logs_days=10
max_binlog_size=1024M
server-id = 2      

binlog-ignore-db=mysql 

Thing is, I forgot to add

binlog-ignore-db=information_schema
binlog-ignore-db=performance_schema

to the config. Is this safe to do with a live replication setup, or do I have to mysqldump --master-data --all-databases all over again?

You should be fine, no need to reinitialize. Information and performance schemas are virtual rather than physical.

You should really upgrade from MariaDB 5.5.x to at least 10.2.x. 5.5.x is EOL and no longer supported.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM