首页 > 数据库技术 > 详细

mysql关于复制的一些信息参考

时间:2018-12-25 17:59:32      阅读:162      评论:0      收藏:0      [点我收藏+]
1.主库的复制用户密码修改后,在备库修改复制:
stop slave;
change master to master_user=‘username‘, master_password=‘password‘;
start slave;

2.创建复制子用户及其授权:
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON . TO ‘repl‘@‘%‘;
alter user ‘repl‘@‘%‘ identified by "password";

3.关于复制的一些参数:
slave-parallel-type = LOGICAL_CLOCK
slave-parallel-workers = 20
master_info_repository = TABLE
relay_log_info_repository = TABLE
relay_log_recovery = ON
skip-slave-start = 0
relay-log = /data/mysql/data/relay-bin
slave-net-timeout = 60
sync-master-info = 0
sync-relay-log = 0
sync-relay-log-info = 0
read_only = 1
#rpl_semi_sync_master_enabled=1
#rpl_semi_sync_master_timeout=10000# 10 second
#rpl_semi_sync_slave_enabled=1

mysql关于复制的一些信息参考

原文:http://blog.51cto.com/1937519/2335138

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!