Skip to content

Commit 73136b1

Browse files
committed
MariaDB data-in updates
1 parent 661f90b commit 73136b1

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

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

Lines changed: 17 additions & 5 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 prior to 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

@@ -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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ 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

1717
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.
1818

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