修改了主庫的某庫dbname2的event scheduler,從庫上並無這個庫,
以後從庫上 show slave status\G 發現報錯
Error 'Unknown database 'dbname2'' on query. Default database: 'dbname2'.
Query: 'ALTER DEFINER=`root`@`%` EVENT `productGeneralizeTimerJob` ON SCHEDULE EVERY 1 DAY STARTS '2016-03-27 00:01:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
查看主庫相關binglog
use `dbname2`/*!*/;
SET TIMESTAMP=1466156563/*!*/;
alter event `productGeneralizeTimerJob` disable
結論:ide
使用replicate_wild_do_table按表過濾,it
event並不屬於表,因此不會被複制過來event
主庫binlog-do-db不作過濾
從庫配置replicate_wild_do_table=dbname.%table