>  기사  >  데이터 베이스  >  Mysql 主从同步简单配置_MySQL

Mysql 主从同步简单配置_MySQL

WBOY
WBOY원래의
2016-06-01 13:11:351063검색

//master

log-bin=mysql-bin
server-id=222

//创建同步帐号
GRANT REPLICATION SLAVE ON *.* to 'mysync'@'172.168.16.105' identified by 'test'


//slave

server-id=221

change master to master_host='192.168.130.198',master_user='sync',master_password='yLGxdSTwmY',master_log_file='mysql-bin.000022',master_log_pos=107;
start slave


성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.