Azure MySQL PaaS (3) Create MySQL offsite read-only database (Master-slave)

Source: Internet
Author: User

Windows Azure Platform Family of articles Catalog

  The azure MySQL PAAs service provides off-site read-only functionality, and we can create MySQL master nodes at primary sites, such as the Azure Shanghai Data Center. The master node can be used for OLTP online transaction processing.

Then, in the Azure Beijing datacenter, create a MySQL read-only node. A read-only node can be used as a report display.

Before you begin this article, note that:

1. This article uses the ASM mode: Azure China, which is connected to the Internet by the century.https://manage.windowsazure.cn

2. We can use MySQL Workbench to manage the MySQL database in the cloud. :https://dev.mysql.com/downloads/workbench/

3. First in the Azure Shanghai Data Center (primary site), create the server name and database, while setting the user name and password

4. Get the connection string to the MySQL PAAs and set the firewall rules

5. Using MySQL Workbench, link to the azure MySQL Shanghai site

6. Create a read-only database (Slave) in the Azure Beijing data center using the UI

Next start the text:

1. Login:https://manage.windowsazure.cn

2. Select New, create a new MySQL Server in azure Shanghai data. Such as:

  

3. When you are finished creating, select the server name.

  

Create a new database. Such as:

  

Set up firewall rules, such as:

  

4. After setting up, we can link to the MySQL service in Shanghai Data Center via the following information:

Host Name:leimysqlshsvr.mysqldb.chinacloudapi.cn

Username:leimysqlshsvr%mysqladmin

MySQL Workbench After the connection is slightly.

5. Next we create a read-only library in the Azure Beijing data Center.

We click Add Master-slave copy, such as:

  

  

6. In the popup window, create a new azure Beijing read-only database, located in North China (Beijing). Note The server name must be unique.

  

7. Once the creation is complete, you can observe the following:

  

Note that the primary instance (master) is the Azure Shanghai Datacenter, the azure Beijing data Center is the slave node

Azure Master Node Azure Slave Node
Data center Azure Shanghai Azure Beijing
Hostname leimysqlshsvr.mysqldb.chinacloudapi.cn leimysqlbjsvr.mysqldb.chinacloudapi.cn
User name Leimysqlshsvr%mysqladmin Leimysqlbjsvr%mysqladmin
Password On the UI interface, enter When the slave node is created, it is automatically obtained from the master node

Finally, don't forget to set the firewall rules for the azure Beijing slave node.

========================================================= delimiter ==============================================

Arm mode first dig anti-...

Azure MySQL PaaS (3) Create a MySQL offsite read-only database (Master-slave)

Related Article

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.