I have a mysql replication with two servers. There are actually 3 databases on it.
On master :
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 4
max_binlog_size = 1G
bind-address = 0.0.0.0
port = 3306
binlog_do_db = database1
binlog_do_db = database2
binlog_do_db = database3
And on slave:
server-id = 2
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 4
max_binlog_size = 1G
bind-address = 127.0.0.1
port = 3306
replicate_do_db = database1
replicate_do_db = database2
replicate_do_db = database3
But i need to add a new one, database4. Do I have to stop servers for this ? By simply adding the base in the cnf file, can this be taken into account dynamically?
Thanks