MySQL master trampling a little pit

Source: Internet
Author: User

Basic situation
Main Library binlog-do-db not filtered
Configure replicate_wild_do_table=dbname.% from Library

Modified the event scheduler for a library dbname2 the main library, and there is no library from the library.
After that, I found an error from the Library 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

View Main Library related Binglog
Use ' dbname2 '/*!*/;
SET timestamp=1466156563/*!*/;
Alter event ' Productgeneralizetimerjob ' disable

Suddenly, this replicate_wild_do_table is filtered by the table, but the event is not part of the table, which causes the problem to occur

MySQL master trampling a little pit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.