mirror of
https://github.com/MariaDB/server.git
synced 2025-05-07 04:01:59 +03:00
Implement @@gtid_binlog_state. This is the internal state of the binlog (most recent GTID logged for every domain_id and server_id). This allows to save the state before RESET MASTER and restore it afterwards.
12 lines
522 B
Plaintext
12 lines
522 B
Plaintext
SELECT @@GLOBAL.gtid_slave_pos;
|
|
@@GLOBAL.gtid_slave_pos
|
|
|
|
SET gtid_binlog_state= '';
|
|
ERROR HY000: Variable 'gtid_binlog_state' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SET SESSION gtid_binlog_state= '';
|
|
ERROR HY000: Variable 'gtid_binlog_state' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SET GLOBAL gtid_binlog_state= DEFAULT;
|
|
ERROR 42000: Variable 'gtid_binlog_state' doesn't have a default value
|
|
SELECT @@session.gtid_binlog_state;
|
|
ERROR HY000: Variable 'gtid_binlog_state' is a GLOBAL variable
|