mysql.gtid_slave_pos Table
You are viewing an old version of this article. View
the current version here.
MariaDB starting with 10.0.2
MariaDB has supported global transaction IDs (GTIDs) for replication since version 10.0.2.
The mysql.gtid_slave_pos
table is used in replication by slave servers to keep track of their current position (the global transaction ID of the last transaction applied). Using the table allows the slave to maintain a consistent value for the gtid_slave_pos system variable across server restarts. See Global Transaction ID.
You should never attempt to modify the table directly. If you do need to change the global gtid_slave_pos value, use SET GLOBAL gtid_slave_pos = ...
instead.
The table contains the following fields:
Field | Type | Null | Key | Default | Description |
---|---|---|---|---|---|
domain_id | int(10) unsigned | NO | PRI | NULL | Domain id (see Global Transaction ID domain ID. |
sub_id | bigint(20) unsigned | NO | PRI | NULL | |
server_id | int(10) unsigned | NO | NULL | Server id. | |
seq_no | bigint(20) unsigned | NO | NULL | Sequence number, an integer that is monotonically increasing for each new event group logged into the binlog. |
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.