Skip to content

Commit ece2908

Browse files
committed
modifying files for general correctness
1 parent 78edbb7 commit ece2908

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

articles/mysql/flexible-server/concepts-read-replicas.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ Because replicas are read-only, they don't directly reduce write-capacity burden
4545

4646
The read replica feature uses MySQL asynchronous replication. The feature isn't meant for synchronous replication scenarios. There's a measurable delay between the source and the replica. The data on the replica eventually becomes consistent with the data on the source. Use this feature for workloads that can accommodate this delay.
4747

48+
## Cross-region replication
49+
50+
You can create a read replica in a different region from your source server. Cross-region replication can be helpful for scenarios like disaster recovery planning or bringing data closer to your users. Azure database for MySQL Flexible Server allows you to provision read-replica in the Azure supported geo-paired region to the source server. Learn more about Azure Paired Regions [here](https://learn.microsoft.com/azure/reliability/cross-region-replication-azure).
51+
52+
4853
## Create a replica
4954

5055
If a source server has no existing replica servers, the source first restarts to prepare itself for replication.

articles/mysql/flexible-server/how-to-data-in-replication.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,14 @@ The results should appear similar to the following. Make sure to note the binary
215215
216216
All Data-in replication functions are done by stored procedures. You can find all procedures at [Data-in replication Stored Procedures](../reference-stored-procedures.md). The stored procedures can be run in the MySQL shell or MySQL Workbench.
217217
218-
To link two servers and start replication, login to the target replica server in the Azure Database for MySQL service and set the external instance as the source server. This is done by using the `mysql.az_replication_change_master` stored procedure on the Azure Database for MySQL server.
218+
To link two servers and start replication, login to the target replica server in the Azure Database for MySQL service and set the external instance as the source server. This is done by using the `mysql.az_replication_change_master` or `mysql.az_replication_change_master_with_gtid` stored procedure on the Azure Database for MySQL server.
219219
220220
```sql
221221
CALL mysql.az_replication_change_master('<master_host>', '<master_user>', '<master_password>', <master_port>, '<master_log_file>', <master_log_pos>, '<master_ssl_ca>');
222222
```
223223
224224
```sql
225-
CALL mysql.az_replication_change_master_with_gtid('<master_host>', '<master_user>', '<master_password>', <master_port>, '<master_log_file>', <master_log_pos>, '<master_ssl_ca>');
225+
CALL mysql.az_replication_change_master_with_gtid('<master_host>', '<master_user>', '<master_password>', <master_port>,'<master_ssl_ca>');
226226
```
227227
228228
- master_host: hostname of the source server
@@ -256,6 +256,9 @@ To link two servers and start replication, login to the target replica server in
256256
```sql
257257
CALL mysql.az_replication_change_master('master.companya.com', 'syncuser', 'P@ssword!', 3306, 'mysql-bin.000002', 120, @cert);
258258
```
259+
```sql
260+
CALL mysql.az_replication_change_master_with_gtid('master.companya.com', 'syncuser', 'P@ssword!', 3306, @cert);
261+
```
259262
260263
*Replication without SSL*
261264
@@ -264,6 +267,9 @@ To link two servers and start replication, login to the target replica server in
264267
```sql
265268
CALL mysql.az_replication_change_master('master.companya.com', 'syncuser', 'P@ssword!', 3306, 'mysql-bin.000002', 120, '');
266269
```
270+
```sql
271+
CALL mysql.az_replication_change_master_with_gtid('master.companya.com', 'syncuser', 'P@ssword!', 3306, '');
272+
```
267273
268274
1. Start replication.
269275

articles/mysql/flexible-server/how-to-data-out-replication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Restore the dump file to the server created in the Azure Database for MySQL - Fl
155155
SOURCE_HOST='<master_host>',
156156
SOURCE_USER='<master_user>',
157157
SOURCE_PASSWORD='<master_password>',
158-
SOURCE_LOG_FILE='<master_log_file>,
158+
SOURCE_LOG_FILE='<master_log_file>',
159159
SOURCE_LOG_POS=<master_log_pos>
160160
```
161161

0 commit comments

Comments
 (0)