一个线上需求,要求主从两库的数据库名字不一样,在从库上做如下配置:replicate-rewrite-db=DB_1->DB_1_online replicate-rewrite-db=DB_2->DB_2_online replicate-wild-do-table=DB_2_online.% replicate-wild-do-table=DB_1_online%