MySQL Open Binlog

Source: Internet
Author: User

MySQL open Binlog, as for why to open Binlog, can Google.

# # Set server_id, generally set to ipserver_id=117# # Copy filter: The name of the database to be backed up, multiple libraries separated by commas, output binlog## binlog- Do-db=mydb## Copy filter: No backup database, no output (MySQL library is not synchronized) # # Binlog-ignore-db=mysql# If the synchronization function or the stored procedure needs to be configured, the master will produce an exception that cannot be synchronized log_bin_trust_function_creators=true## Open Binary log function, can be arbitrarily taken, it is better to have meaning log-bin=117-mysql-bin## the memory allocated for each session, which is used to store the cache of the binary log during the transaction binlog_cache_size=1m## master-slave copy format (mixed,statement,row, default format is statement) Binlog_format=mixed## binary Log automatic deletion/the number of days to expire. The default value is 0, which means that it is not automatically deleted. Expire_logs_days=Ten# # Skip all errors encountered in master-slave replication or specify types of errors to avoid slave-side replication interrupts. # # Example: 1062 error refers to some primary key duplication, 1032 error is due to master and slave database data inconsistency slave_skip_errors=1062

MySQL Open Binlog

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.