There are options to dynamically set variables on replication slaves, like replicate_wild_do_table
and replicate_wild_ignore_table
.
But, are there any options for replication master to dynamically set database names which begin with same prefix, and not repeating:
replicate-do-db=prefix_db1
replicate-do-db=prefix_other_db
replicate-do-db=prefix_third_database
...
in my.cnf
.