Skip to content

Commit d023b0e

Browse files
authored
Merge pull request #109565 from ajlam/master
MariaDB data-in updates
2 parents c35e59c + 1811310 commit d023b0e

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

articles/mariadb/howto-data-in-replication.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ajlam
55
ms.author: andrela
66
ms.service: mariadb
77
ms.topic: conceptual
8-
ms.date: 3/18/2020
8+
ms.date: 3/30/2020
99
---
1010

1111
# Configure Data-in Replication in Azure Database for MariaDB
@@ -14,6 +14,8 @@ This article describes how to set up Data-in Replication in Azure Database for M
1414

1515
To create a replica in the Azure Database for MariaDB service, Data-in Replication synchronizes data from a master MariaDB server on-premises, in virtual machines (VMs), or in cloud database services.
1616

17+
Review the [limitations and requirements](concepts-data-in-replication.md#limitations-and-considerations) of Data-in replication before performing the steps in this article.
18+
1719
> [!NOTE]
1820
> If your master server is version 10.2 or newer, we recommend that you set up Data-in Replication by using [Global Transaction ID](https://mariadb.com/kb/en/library/gtid/).
1921
@@ -31,11 +33,21 @@ To create a replica in the Azure Database for MariaDB service, Data-in Replicati
3133

3234
User accounts aren't replicated from the master server to the replica server. To provide user access to the replica server, you must manually create all accounts and corresponding privileges on the newly created Azure Database for MariaDB server.
3335

36+
3. Add the master server's IP address to the replica's firewall rules.
37+
38+
Update firewall rules using the [Azure portal](howto-manage-firewall-portal.md) or [Azure CLI](howto-manage-firewall-cli.md).
39+
3440
## Configure the master server
3541

3642
The following steps prepare and configure the MariaDB server hosted on-premises, in a VM, or in a cloud database service for Data-in Replication. The MariaDB server is the master in Data-in Replication.
3743

38-
1. Turn on binary logging.
44+
1. Review the [master server requirements](concepts-data-in-replication.md#requirements) before proceeding.
45+
46+
For example, ensure the master server allows both inbound and outbound traffic on port 3306 and that the master server has a **public IP address**, the DNS is publicly accessible, or has a fully qualified domain name (FQDN).
47+
48+
Test connectivity to the master server by attempting to connect from a tool such as the MySQL command-line hosted on another machine or from the [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview) available in the Azure portal.
49+
50+
2. Turn on binary logging.
3951

4052
To see if binary logging is enabled on the master, enter the following command:
4153

@@ -47,15 +59,15 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
4759

4860
If `log_bin` returns the value `OFF`, edit the **my.cnf** file so that `log_bin=ON` turns on binary logging. Restart the server to make the change take effect.
4961

50-
2. Configure master server settings.
62+
3. Configure master server settings.
5163

5264
Data-in Replication requires the parameter `lower_case_table_names` to be consistent between the master and replica servers. The `lower_case_table_names` parameter is set to `1` by default in Azure Database for MariaDB.
5365

5466
```sql
5567
SET GLOBAL lower_case_table_names = 1;
5668
```
5769

58-
3. Create a new replication role and set up permissions.
70+
4. Create a new replication role and set up permissions.
5971

6072
Create a user account on the master server that's configured with replication privileges. You can create an account by using SQL commands or MySQL Workbench. If you plan to replicate with SSL, you must specify this when you create the user account.
6173

@@ -100,7 +112,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
100112
![Replication Slave](./media/howto-data-in-replication/replicationslave.png)
101113
102114
103-
4. Set the master server to read-only mode.
115+
5. Set the master server to read-only mode.
104116
105117
Before you dump a database, the server must be placed in read-only mode. While in read-only mode, the master can't process any write transactions. To help avoid business impact, schedule the read-only window during an off-peak time.
106118

@@ -109,7 +121,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
109121
SET GLOBAL read_only = ON;
110122
```
111123

112-
5. Get the current binary log file name and offset.
124+
6. Get the current binary log file name and offset.
113125

114126
To determine the current binary log file name and offset, run the command [`show master status`](https://mariadb.com/kb/en/library/show-master-status/).
115127

@@ -122,7 +134,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
122134

123135
Note the binary file name, because it'll be used in later steps.
124136
125-
6. Get the GTID position (optional, needed for replication with GTID).
137+
7. Get the GTID position (optional, needed for replication with GTID).
126138
127139
Run the function [`BINLOG_GTID_POS`](https://mariadb.com/kb/en/library/binlog_gtid_pos/) to get the GTID position for the corresponding binlog file name and offset.
128140
@@ -191,7 +203,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
191203

192204
```sql
193205
SET @cert = '-----BEGIN CERTIFICATE-----
194-
PLACE YOUR PUBLIC KEY CERTIFICATE'S CONTEXT HERE
206+
PLACE YOUR PUBLIC KEY CERTIFICATE\'S CONTEXT HERE
195207
-----END CERTIFICATE-----'
196208
```
197209

articles/mysql/howto-data-in-replication.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ ms.date: 3/27/2020
1010

1111
# How to configure Azure Database for MySQL Data-in Replication
1212

13-
In this article, you will learn how to set up Data-in Replication in the Azure Database for MySQL service by configuring the master and replica servers. Data-in Replication allows you to synchronize data from a master MySQL server running on-premises, in virtual machines, or database services hosted by other cloud providers into a replica in the Azure Database for MySQL service.
13+
This article describes how to set up Data-in Replication in Azure Database for MySQL by configuring the master and replica servers. This article assumes that you have some prior experience with MySQL servers and databases.
1414

15-
This article assumes that you have at least some prior experience with MySQL servers and databases.
15+
To create a replica in the Azure Database for MySQL service, Data-in Replication synchronizes data from a master MySQL server on-premises, in virtual machines (VMs), or in cloud database services.
1616

17-
Review the [limitations and requirements](concepts-data-in-replication.md#limitations-and-considerations) of Data-in replication prior to performing the steps in this article.
17+
Review the [limitations and requirements](concepts-data-in-replication.md#limitations-and-considerations) of Data-in replication before performing the steps in this article.
1818

1919
## Create a MySQL server to be used as replica
2020

@@ -42,7 +42,7 @@ The following steps prepare and configure the MySQL server hosted on-premises, i
4242

4343
For example, ensure the master server allows both inbound and outbound traffic on port 3306 and that the master server has a **public IP address**, the DNS is publicly accessible, or has a fully qualified domain name (FQDN).
4444

45-
Test connectivity to the master server by attempting to connect from a tool such as the MySQL command-line hosted on another machine or from the [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview) available in the Azure portal
45+
Test connectivity to the master server by attempting to connect from a tool such as the MySQL command-line hosted on another machine or from the [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview) available in the Azure portal.
4646

4747
2. Turn on binary logging
4848

0 commit comments

Comments
 (0)