mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
79 lines
2.9 KiB
Text
79 lines
2.9 KiB
Text
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
START SLAVE USER='root';
|
|
Warnings:
|
|
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
INSERT INTO t1 VALUES (2);
|
|
START SLAVE USER='root';
|
|
Warnings:
|
|
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
INSERT INTO t1 VALUES (3);
|
|
INSERT INTO t1 VALUES (4);
|
|
SET GLOBAL wsrep_cluster_address='gcomm://';
|
|
INSERT INTO t1 VALUES (5);
|
|
SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
|
|
VARIABLE_VALUE = 'Synced'
|
|
1
|
|
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
VARIABLE_VALUE = 'Primary'
|
|
1
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
INSERT INTO t1 VALUES (6);
|
|
GRANT ALL PRIVILEGES ON *.* TO 'sst';
|
|
SET GLOBAL wsrep_sst_auth = 'sst:';
|
|
GRANT ALL PRIVILEGES ON *.* TO 'sst';
|
|
SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
|
|
VARIABLE_VALUE = 'Synced'
|
|
1
|
|
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
VARIABLE_VALUE = 'Primary'
|
|
1
|
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
VARIABLE_VALUE = 2
|
|
1
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
INSERT INTO t1 VALUES (7);
|
|
INSERT INTO t1 VALUES (8);
|
|
SELECT COUNT(*) = 8 FROM t1;
|
|
COUNT(*) = 8
|
|
1
|
|
SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
|
|
VARIABLE_VALUE = 'Synced'
|
|
1
|
|
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
VARIABLE_VALUE = 'Primary'
|
|
1
|
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
VARIABLE_VALUE = 2
|
|
1
|
|
SELECT COUNT(*) = 8 FROM t1;
|
|
COUNT(*) = 8
|
|
1
|
|
SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
|
|
VARIABLE_VALUE = 'Synced'
|
|
1
|
|
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
|
VARIABLE_VALUE = 'Primary'
|
|
1
|
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
VARIABLE_VALUE = 2
|
|
1
|
|
DROP TABLE t1;
|
|
DROP TABLE t1;
|
|
SET GLOBAL wsrep_provider = 'none';
|
|
SET GLOBAL wsrep_sst_auth = '';
|
|
SET GLOBAL wsrep_provider_options = '';
|
|
DROP TABLE t1;
|
|
DROP USER sst;
|
|
SET GLOBAL wsrep_provider = 'none';
|
|
SET GLOBAL wsrep_sst_method = 'rsync';
|
|
SET GLOBAL wsrep_provider_options = '';
|
|
SET GLOBAL wsrep_sst_receive_address = 'AUTO';
|
|
DROP TABLE t1;
|
|
DROP USER sst;
|
|
CALL mtr.add_suppression("InnoDB: Error: Table \"mysql\"\\.\"innodb_index_stats\" not found");
|