Windowsmysql bidirectional synchronization settings

Source: Internet
Author: User
If you need a two-way synchronization environment for the windowsmysql master and slave, follow these steps:

If you need a two-way synchronization environment for windows mysql master and slave, follow these steps:

Host operations

######

#

Host operations

#

Verify Data Synchronization

| 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 |

#

Node:

#

-> MASTER_LOG_POS = 98 ;#

Slave_IO_Running: Yes

Slave_ SQL _Running: Yes

Other ">

Other ">

Other ">

Other ">

Other ">

Other ">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.