数据库
首页 > 数据库> > 【MySQL管理】MySQL参数配置

【MySQL管理】MySQL参数配置

作者:互联网

[mysqld]
#binlog configuration
server-id=1
log-bin=/u01/mysql/logs/mysql-bin
binlog_format=ROW
binlog_cache_size = 4M
max_binlog_cache_size = 2G
max_binlog_size = 1G
expire_logs_days=7
sync_binlog = 1

#gtid conf
gtid-mode=ON
enforce_gtid_consistency=1
#log-slave-updates=1

#临时文件目录
slave_load_tmpdir=/u01/mysql/tmp/
tmpdir =/u01/mysql/tmp/


从库配置
#MTS conf
slave-parallel-type=LOGICAL_CLOCK
slave-parallel-workers=8
master_info_repository=TABLE
relay_log_info_repository=TABLE
#relay log conf
relay_log_recovery =1
relay_log=/u01/mysql/logs/relay-bin
max_relay_log_size = 0
relay_log_purge = 1
sync_relay_log = 0
sync_relay_log_info = 0
#涉及同步参数
bulk_insert_buffer_size=100M
innodb_log_buffer_size=512M
innodb_page_cleaners=8
innodb_io_capacity_max=20000
innodb_io_capacity=10000

标签:binlog,log,relay,mysql,配置,参数,MySQL,u01,size
来源: https://www.cnblogs.com/helon/p/15646097.html