【MySQL管理】MySQL参数配置

2021/12/5 19:47:28

本文主要是介绍【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



这篇关于【MySQL管理】MySQL参数配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程