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關于復制的一些信息參考
標簽:sql???osi???info???cloc???密碼修改???用戶???關于???tor???mysql
本條技術文章來源于互聯網,如果無意侵犯您的權益請點擊此處反饋版權投訴
本文系統來源:http://blog.51cto.com/1937519/2335139