Skip to content

Commit f8faf96

Browse files
authored
Merge pull request #199894 from SudheeshGH/stopreplclichange
Azure Cli change
2 parents 606ad38 + 6ffffff commit f8faf96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

articles/mysql/flexible-server/concepts-data-in-replication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Modifying the parameter `replicate_wild_ignore_table` used to create replication
4848

4949
- The source server version must be at least MySQL version 5.7.
5050
- Our recommendation is to have the same version for source and replica server versions. For example, both must be MySQL version 5.7 or both must be MySQL version 8.0.
51-
- Our recommendation is to have a primary key in each table. If we have table without primary key, you might face slowness in replication. To create primary keys for tables you can use [invisible column](https://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html) if your MySQL version is greater than 8.0.23(*alter table <table name> add column <column name> bigint auto_increment INVISIBLE PRIMARY KEY;*).
51+
- Our recommendation is to have a primary key in each table. If we have table without primary key, you might face slowness in replication. To create primary keys for tables you can use [invisible column](https://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html) if your MySQL version is greater than 8.0.23 `(ALTER TABLE <table name> ADD COLUMN <column name> bigint AUTO_INCREMENT INVISIBLE PRIMARY KEY;)`.
5252
- The source server should use the MySQL InnoDB engine.
5353
- User must have permissions to configure binary logging and create new users on the source server.
5454
- Binary log files on the source server shouldn't be purged before the replica applies those changes. If the source is Azure Database for MySQL refer how to configure binlog_expire_logs_seconds for [Flexible server](./concepts-server-parameters.md#binlog_expire_logs_seconds) or [Single server](../concepts-server-parameters.md#binlog_expire_logs_seconds)

articles/mysql/flexible-server/concepts-high-availability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Automatic backups, both snapshots and log backups, are performed on locally redu
6363

6464
>[!Note]
6565
>For both zone-redundant and same-zone HA:
66-
>* If there's a failure, the time needed for the standby replica to take over the role of primary depends on the binary log application on the standby. So we recommend that you use primary keys on all tables to reduce failover time. Failover times are typically between 60 and 120 seconds.To create primary keys for tables you can use [invisible column](https://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html) if your MySQL version is greater than 8.0.23(*alter table <table name> add column <column name> bigint auto_increment INVISIBLE PRIMARY KEY;*).
66+
>* If there's a failure, the time needed for the standby replica to take over the role of primary depends on the binary log application on the standby. So we recommend that you use primary keys on all tables to reduce failover time. Failover times are typically between 60 and 120 seconds.To create primary keys for tables you can use [invisible column](https://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html) if your MySQL version is greater than 8.0.23 `(ALTER TABLE <table name> ADD COLUMN <column name> bigint AUTO_INCREMENT INVISIBLE PRIMARY KEY;)`.
6767
>* The standby server isn't available for read or write operations. It's a passive standby to enable fast failover.
6868
>* Always use a fully qualified domain name (FQDN) to connect to your primary server. Avoid using an IP address to connect. If there's a failover, after the primary and standby server roles are switched, a DNS A record might change. That change would prevent the application from connecting to the new primary server if an IP address is used in the connection string.
6969

articles/mysql/flexible-server/how-to-read-replicas-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ az mysql flexible-server replica list --server-name mydemoserver --resource-grou
6262
Replication to a read replica server can be stopped using the following command:
6363

6464
```azurecli-interactive
65-
az mysql flexible-server replica stop-replication --replica-name mydemoreplicaserver --resource-group myresourcegroup
65+
az mysql flexible-server replica stop-replication --name mydemoreplicaserver --resource-group myresourcegroup
6666
```
6767

6868
### Delete a replica server

0 commit comments

Comments
 (0)