Heim  >  Artikel  >  Datenbank  >  Windows mysql 双向同步设置方法 详细篇

Windows mysql 双向同步设置方法 详细篇

WBOY
WBOYOriginal
2016-06-07 18:03:351232Durchsuche

如果你需要windows mysql 主、备机双向同步环境,可按照以下步骤进行操作

主机操作

######

#

主机操作

#

验证数据同步

| Position | Binlog_Do_DB| Binlog_Ignore_DB |

98 | ikey_db,ikey_log ||

Slave_IO_State: Waiting for master to send event

Master_Host: 192.168.1.101

Master_User: ym

Master_Port: 3306

Connect_Retry: 60

Master_Log_File: mysql-bin.000001

Read_Master_Log_Pos: 98

Relay_Log_File: testBBB-relay-bin.000002

Relay_Log_Pos: 235

Relay_Master_Log_File: mysql-bin.000001

Slave_IO_Running: Yes

Slave_SQL_Running: Yes

Replicate_Do_DB: ikey_db,ikey_log

| Position | Binlog_Do_DB| Binlog_Ignore_DB |

118 | ikey_db,ikey_log ||

-> MASTER_HOST='192.168.1.103',# Master

-> MASTER_USER='ym',

->MASTER_PASSWORD='ym',-> ->MASTER_LOG_FILE='mysql-bin.000002',#

-> MASTER_LOG_POS=118;#

| Position | Binlog_Do_DB| Binlog_Ignore_DB |

98 | ikey_db,ikey_log ||

#

节点:

#

-> MASTER_LOG_POS=98;#

Slave_IO_Running: Yes

Slave_SQL_Running: Yes


cript">

cript">

cript">

cript">

cript">

cript">

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn