mysql怎么复制信息_mysql关于复制的一些信息参考
1.主庫的復制用戶密碼修改后,在備庫修改復制:
stop slave;
change master to master_user=‘username‘, master_password=‘password‘;
start slave;
2.創(chuàng)建復制子用戶及其授權(quán):
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON . TO ‘repl‘@‘%‘;
alter user ‘repl‘@‘%‘ identified by "password";
3.關(guān)于復制的一些參數(shù):
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關(guān)于復制的一些信息參考
標簽:sql???osi???info???cloc???密碼修改???用戶???關(guān)于???tor???mysql
本條技術(shù)文章來源于互聯(lián)網(wǎng),如果無意侵犯您的權(quán)益請點擊此處反饋版權(quán)投訴
本文系統(tǒng)來源:http://blog.51cto.com/1937519/2335139
總結(jié)
以上是生活随笔為你收集整理的mysql怎么复制信息_mysql关于复制的一些信息参考的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 梅屿电动车上牌便民服务点在哪?
- 下一篇: centos mysql 5.5 art