You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mariadb/howto-data-in-replication.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: ajlam
5
5
ms.author: andrela
6
6
ms.service: mariadb
7
7
ms.topic: conceptual
8
-
ms.date: 3/18/2020
8
+
ms.date: 3/30/2020
9
9
---
10
10
11
11
# 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
14
14
15
15
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.
16
16
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
+
17
19
> [!NOTE]
18
20
> 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/).
19
21
@@ -31,11 +33,21 @@ To create a replica in the Azure Database for MariaDB service, Data-in Replicati
31
33
32
34
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.
33
35
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
+
34
40
## Configure the master server
35
41
36
42
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.
37
43
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.
39
51
40
52
To see if binary logging is enabled on the master, enter the following command:
41
53
@@ -47,15 +59,15 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
47
59
48
60
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.
49
61
50
-
2. Configure master server settings.
62
+
3. Configure master server settings.
51
63
52
64
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.
53
65
54
66
```sql
55
67
SET GLOBAL lower_case_table_names =1;
56
68
```
57
69
58
-
3. Create a new replication role and set up permissions.
70
+
4. Create a new replication role and set up permissions.
59
71
60
72
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.
61
73
@@ -100,7 +112,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
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.
106
118
@@ -109,7 +121,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
109
121
SET GLOBAL read_only = ON;
110
122
```
111
123
112
-
5. Get the current binary log file name and offset.
124
+
6. Get the current binary log file name and offset.
113
125
114
126
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/).
115
127
@@ -122,7 +134,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
122
134
123
135
Note the binary file name, because it'll be used in later steps.
124
136
125
-
6. Get the GTID position (optional, needed for replication with GTID).
137
+
7. Get the GTID position (optional, needed for replication with GTID).
126
138
127
139
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.
128
140
@@ -191,7 +203,7 @@ The following steps prepare and configure the MariaDB server hosted on-premises,
Copy file name to clipboardExpand all lines: articles/mysql/howto-data-in-replication.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ ms.date: 3/27/2020
10
10
11
11
# How to configure Azure Database for MySQL Data-in Replication
12
12
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.
14
14
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.
16
16
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.
18
18
19
19
## Create a MySQL server to be used as replica
20
20
@@ -42,7 +42,7 @@ The following steps prepare and configure the MySQL server hosted on-premises, i
42
42
43
43
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).
44
44
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.
0 commit comments