The pit in MySQL!! (Continuous update)

Source: Internet
Author: User
Tags mysql version


MySQL sinkhole one: replication filters cause data clutter ()

MySQL version 5.6.20-log

replicate_do_db: All SQL under this DB session will be executed from the library

replicate_ignore_db: All SQL below the DB session is ignored from the library

The above two replication filters can easily cause data confusion, it is best not to use


REPLICATE_DO_DB: If SQL associated with the specified replication db is executed under another DB session, the SQL is not executed from the library

And does not cause replication to fail, resulting in inconsistent master-slave data. You can replace replicate_do_db with replicate_do_table

replicate_ignore_db: If the sql,sql associated with ignoring DB is performed under another DB session, it will still be executed from the library

And does not cause replication to fail, resulting in inconsistent master-slave data. You can replace replicate_ignore_db with replicate_ignore_table




This article is from the "SQL Server MySQL" blog, so be sure to keep this source http://dwchaoyue.blog.51cto.com/2826417/1570421

The pit in MySQL!! (Continuous update)

Related Article

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.