Enterprise Mysql multi-instance master-slave Replication

Source: Internet
Author: User
1. Problem Background: 2. database architecture diagram: 3. Solution: 4. Solution: 5. Result Test: 1. Problem Background: the company's two mysql servers do not have A master-slave replication architecture. Database a and database B run on server

1. Problem Background: 2. database architecture diagram: 3. Solution: 4. Solution: 5. Result Test: 1. Problem Background: the company's two mysql servers do not have A master-slave replication architecture. Database a and database B run on server

1. Background:

2. database architecture diagram:

3. solution:

4. solution:

5. Test results:


1. Background:

The company's two mysql servers do not have A master-slave replication architecture. Database a and database B run on server A, database d and database e run on server B, and database, server B runs different tables in database c, so both servers A and B actually work in standalone mode, but they do database/table sharding, however, the database security and service continuity cannot be guaranteed.

2. Database Server architecture diagram: server a ip Address: 192.168.3.102, server B IP Address: 192.168.3.100

5. Test results:

Create and delete A database on the instance with port 3306 of the master server A, and then check whether the database of the instance with port 3307 of server B has changed:

This article is from the "Sea sky" blog. Please keep this source

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.