1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
include/master-slave.inc
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
[connection master]
call mtr.add_suppression("Statement is unsafe because it uses a system function that may return a different value on the replica");
SET GLOBAL DEBUG ='+d,set_commit_parent_100';
SET GLOBAL replica_parallel_type=LOGICAL_CLOCK;
ERROR HY000: This operation cannot be performed with a running replica sql thread; run STOP REPLICA SQL_THREAD first
include/stop_slave.inc
FLUSH LOGS;
create database db1;
create database db2;
create database db3;
create database db4;
FLUSH LOGS;
#setup the databases and tables
CREATE TABLE db1.t (a int) engine=innodb;
CREATE TEMPORARY TABLE db1.t_temp (a int) engine=innodb;
CREATE TABLE db2.t (a int) engine=myisam;
CREATE TEMPORARY TABLE db2.t_temp (a int) engine=innodb;
SET GLOBAL DEBUG ='-d,set_commit_parent_100';
CREATE TABLE db3.t engine=innodb select 100*RAND() as a;
CREATE TEMPORARY TABLE db3.t_temp (a int) engine=innodb;
SET @VAR=100;
CREATE TABLE db4.t engine=myisam select @VAR as a;
CREATE TEMPORARY TABLE db4.t_temp (a int) engine=innodb;
SET GLOBAL DEBUG ='+d,set_commit_parent_100';
FLUSH LOGS;
TRUNCATE db3.t;
FLUSH LOGS;
INSERT INTO db2.t values (1),(2),(3);
INSERT INTO db4.t values (1),(2),(3);
FLUSH LOGS;
INSERT INTO db1.t_temp values (1),(2),(3);
INSERT INTO db2.t_temp values (1),(2),(3);
INSERT INTO db3.t_temp values (1),(2),(3);
INSERT INTO db4.t_temp values (1),(2),(3);
FLUSH LOGS;
BEGIN;
INSERT INTO db1.t values (1),(2),(3);
INSERT INTO db1.t values (1),(2),(3);
UPDATE db1.t SET db1.t.a= 2 WHERE db1.t.a > 2;
COMMIT;
BEGIN;
INSERT INTO db3.t values (1),(2),(3);
INSERT INTO db3.t values (1),(2),(3);
UPDATE db3.t SET db3.t.a= 2 WHERE db3.t.a > 2;
COMMIT;
FLUSH LOGS;
BEGIN;
INSERT INTO db2.t values (1),(2),(3);
INSERT INTO db3.t values (1),(2),(3);
UPDATE db3.t SET db3.t.a= 2 WHERE db3.t.a > 2;
COMMIT;
BEGIN;
INSERT INTO db1.t values (1),(2),(3);
INSERT INTO db4.t values (1),(2),(3);
UPDATE db1.t SET db1.t.a= 2 WHERE db1.t.a > 2;
COMMIT;
SET GLOBAL DEBUG ='-d,set_commit_parent_100';
DROP TABLE db1.t_temp;
DROP TABLE db2.t_temp;
DROP TABLE db3.t_temp;
DROP TABLE db4.t_temp;
SET GLOBAL replica_parallel_type='DATABASE';
Warnings:
Warning 1287 '@@replica_parallel_type' is deprecated and will be removed in a future release.
include/start_slave.inc
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:db1.t,slave:db1.t]
include/diff_tables.inc [master:db2.t, slave:db2.t]
include/diff_tables.inc [master:db3.t, slave:db3.t]
include/diff_tables.inc [master:db4.t, slave:db4.t]
include/stop_slave.inc
RESET SLAVE;
Warnings:
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db3;
DROP DATABASE db4;
SET GLOBAL replica_parallel_type='LOGICAL_CLOCK';
Warnings:
Warning 1287 '@@replica_parallel_type' is deprecated and will be removed in a future release.
include/start_slave.inc
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:db1.t, slave:db1.t]
include/diff_tables.inc [master:db2.t, slave:db2.t]
include/diff_tables.inc [master:db3.t, slave:db3.t]
include/diff_tables.inc [master:db4.t, slave:db4.t]
include/stop_slave.inc
RESET SLAVE;
Warnings:
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db3;
DROP DATABASE db4;
SET GLOBAL replica_parallel_type='DATABASE';
Warnings:
Warning 1287 '@@replica_parallel_type' is deprecated and will be removed in a future release.
include/start_slave.inc
include/sync_slave_sql_with_master.inc
include/diff_tables.inc [master:db1.t, slave:db1.t]
include/diff_tables.inc [master:db2.t, slave:db2.t]
include/diff_tables.inc [master:db3.t, slave:db3.t]
include/diff_tables.inc [master:db4.t, slave:db4.t]
include/stop_slave.inc
SET GLOBAL REPLICA_PARALLEL_TYPE=DEFAULT;
Warnings:
Warning 1287 '@@replica_parallel_type' is deprecated and will be removed in a future release.
include/start_slave.inc
DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db3;
DROP DATABASE db4;
include/stop_slave.inc
include/start_slave.inc
include/rpl_end.inc
|