include/aster-slave.nc
[onnectionmaster ;
connectionmaster;
ALTERTABLE mysql. ENGINE=java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 set global binlog_alter_two_phase = ON; set binlog_alter_two_phase = ON;
connection slave; set global gtid_strict_mode=1;
# Legacy Master Slave
connect master_node,127.0.0.1,root,,$db_name, $M_port;
connect slave_node,127.0.0.1,root,,test, $S_port;
# myisam
connection master_node;
create table t1(a int, b int) engine=myisam;;
insert into t1 values(1,1);
insert into t1 values(2,2);
# Normal Alter
alter table t1 add column c int;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
# Failed Alter
insert into t1 values(1,1, NULL);
alter table t1 change a a int unique; ERROR23000: Duplicate entry '1' for key 'a' set @@session.binlog_alter_two_phase = 0;
alter table t1 change a a int; set @@session.binlog_alter_two_phase = 1;
alter table t1 change a a int;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
include/save_master_gtid.inc
connection slave_node;
include/sync_with_master_gtid.inc
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
connection master_node;
drop table t1;
include/save_master_gtid.inc
connection slave_node;
include/sync_with_master_gtid.inc
# innodb
connection master_node;
create table t1(a int, b int) engine=innodb;;
insert into t1 values(1,1);
insert into t1 values(2,2);
# Normal Alter
alter table t1 add column c int;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
# Failed Alter
insert into t1 values(1,1, NULL);
alter table t1 change a a int unique; ERROR23000: Duplicate entry '1' for key 'a' set @@session.binlog_alter_two_phase = 0;
alter table t1 change a a int; set @@session.binlog_alter_two_phase = 1;
alter table t1 change a a int;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
include/save_master_gtid.inc
connection slave_node;
include/sync_with_master_gtid.inc
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
connection master_node;
drop table t1;
include/save_master_gtid.inc
connection slave_node;
include/sync_with_master_gtid.inc
# aria
connection master_node;
create table t1(a int, b int) engine=aria;;
insert into t1 values(1,1);
insert into t1 values(2,2);
# Normal Alter
alter table t1 add column c int;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci PAGE_CHECKSUM=1
# Failed Alter
insert into t1 values(1,1, NULL);
alter table t1 change a a int unique; ERROR23000: Duplicate entry '1' for key 'a' set @@session.binlog_alter_two_phase = 0;
alter table t1 change a a int; set @@session.binlog_alter_two_phase = 1;
alter table t1 change a a int;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci PAGE_CHECKSUM=1
include/save_master_gtid.inc
connection slave_node;
include/sync_with_master_gtid.inc
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=Aria DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci PAGE_CHECKSUM=1
connection master_node;
drop table t1;
include/save_master_gtid.inc
connection slave_node;
include/sync_with_master_gtid.inc
# concurrent alter Myisam
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Concurrent DML
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Rollback tests ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b'
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# diff_table of master and slave , we will do only in the case when
# sync_slave is on
include/diff_tables.inc [master_node:t1, slave_node:t1]
include/diff_tables.inc [master_node:t2, slave_node:t2]
include/diff_tables.inc [master_node:t3, slave_node:t3]
include/diff_tables.inc [master_node:t4, slave_node:t4]
include/diff_tables.inc [master_node:t5, slave_node:t5]
include/diff_tables.inc [master_node:t6, slave_node:t6]
include/diff_tables.inc [master_node:t7, slave_node:t7]
include/diff_tables.inc [master_node:t8, slave_node:t8]
include/diff_tables.inc [master_node:t9, slave_node:t9]
include/diff_tables.inc [master_node:t10, slave_node:t10]
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# concurrent alter Aria
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Concurrent DML
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Rollback tests ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b'
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# diff_table of master and slave , we will do only in the case when
# sync_slave is on
include/diff_tables.inc [master_node:t1, slave_node:t1]
include/diff_tables.inc [master_node:t2, slave_node:t2]
include/diff_tables.inc [master_node:t3, slave_node:t3]
include/diff_tables.inc [master_node:t4, slave_node:t4]
include/diff_tables.inc [master_node:t5, slave_node:t5]
include/diff_tables.inc [master_node:t6, slave_node:t6]
include/diff_tables.inc [master_node:t7, slave_node:t7]
include/diff_tables.inc [master_node:t8, slave_node:t8]
include/diff_tables.inc [master_node:t9, slave_node:t9]
include/diff_tables.inc [master_node:t10, slave_node:t10]
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# concurrent alter Innodb copy
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Concurrent DML
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Rollback tests ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b'
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# diff_table of master and slave , we will do only in the case when
# sync_slave is on
include/diff_tables.inc [master_node:t1, slave_node:t1]
include/diff_tables.inc [master_node:t2, slave_node:t2]
include/diff_tables.inc [master_node:t3, slave_node:t3]
include/diff_tables.inc [master_node:t4, slave_node:t4]
include/diff_tables.inc [master_node:t5, slave_node:t5]
include/diff_tables.inc [master_node:t6, slave_node:t6]
include/diff_tables.inc [master_node:t7, slave_node:t7]
include/diff_tables.inc [master_node:t8, slave_node:t8]
include/diff_tables.inc [master_node:t9, slave_node:t9]
include/diff_tables.inc [master_node:t10, slave_node:t10]
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# concurrent alter Innodb Inplace
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Concurrent DML
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# Rollback tests ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b' ERROR23000: Duplicate entry '2' for key 'b'
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
# diff_table of master and slave , we will do only in the case when
# sync_slave is on
include/diff_tables.inc [master_node:t1, slave_node:t1]
include/diff_tables.inc [master_node:t2, slave_node:t2]
include/diff_tables.inc [master_node:t3, slave_node:t3]
include/diff_tables.inc [master_node:t4, slave_node:t4]
include/diff_tables.inc [master_node:t5, slave_node:t5]
include/diff_tables.inc [master_node:t6, slave_node:t6]
include/diff_tables.inc [master_node:t7, slave_node:t7]
include/diff_tables.inc [master_node:t8, slave_node:t8]
include/diff_tables.inc [master_node:t9, slave_node:t9]
include/diff_tables.inc [master_node:t10, slave_node:t10]
# Sync slave
include/save_master_gtid.inc
include/sync_with_master_gtid.inc
connection master;
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc set global gtid_strict_mode = 0;;
connection master; set global binlog_alter_two_phase=0;;
include/rpl_end.inc
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.8Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.