table of Contents
【1】
Detail
[1] parameters
[1.1] The basic parameters
bind-address=192.168.1.201
server_id = 2013306 # same master never suggested IP + port
# Skip_name_resolve = off # to skip the host name / domain name resolution
transaction-isolation = read-committed # transaction isolation level set to RC
[1.2] binlog binary log parameters
log_bin=/mysql/log/3306/binlog/mysql-bin
log_bin_index=/mysql/log/3306/binlog/mysql-bin.index
binlog_format = row # row format, must
binlog_row_query_log_events = on # binary log record more detailed operation of SQL
Before sync_binlog = 1 # default, MySQL every time a transaction is committed to disk will be binary synchronous
innodb_flush_log_at_trx_commit = 1 # default, every time the log Buffer MySQL will write log fiel transaction commits, and flush to disk.
log_bin_trust_function_creators = 1 # 0 is the default, this parameter is synchronous functions and stored procedures
max_binlog_size = 2048M # 1024M default
expire_logs_days = 7 #binlog to retain the number of days, to see the specific arrangements
binlog_cacahe_size = 1M # default 32K, binlog cache size, be careful when setting recommended 1-4M according busy situation.
innodb_support_xa = 1 # This parameter is provided on the main database, the default automatically. Distributed Transaction parameters.
# This parameter ensures that the transaction log is written binlog order is the time-line transaction is consistent.