MySQL binary Log filtering

Source: Internet
Author: User

binlog_do_db;

binlog_ignore_db;

This two parameter is used to control which database changes to log; The following is an example of binlog_ignore_db.

if Binlog_ignore_db=studio;

Use studio; INSERT into t (x, Y) VALUES (2,2);--This is not a binary log, because its execution context is studio.

Use Studio;insert into test.t (x, Y) VALUES (3,3);--Similarly, this does not log logging because its execution context is studio.

Attention:

Because the log is logged to the execution context, because insert into test.t (x, Y) VALUES (3,3), such statements its execution context and

Does not change, so in order to avoid the wrong filtering, do not write the database name. Table name Database name. The name of the name of the function database. SQL instead of the stored procedure name;

This behavior does not apply to row-based replication---because row-based replication works when each individual change occurs.

MySQL binary Log filtering

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.