Skip to content

Commit f7d93d9

Browse files
author
Sudheesh Narayanaswamy
committed
remove auto increment
1 parent 3cd1744 commit f7d93d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.
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.
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

0 commit comments

Comments
 (0)