[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.218.31.91: ~ $
include/master-slave.inc
[connection master]
CREATE TABLE t1 (c1 INT KEY) ROW_FORMAT=DYNAMIC ENGINE=NDB;
INSERT INTO t1 VALUES (1),(2),(3);
ALTER TABLE t1 ADD c2 INT;
SELECT * FROM t1 ORDER BY c1;
c1	c2
1	NULL
2	NULL
3	NULL
INSERT INTO t1 VALUES (6,6),(7,7),(8,8);
SELECT * FROM t1 ORDER BY c1;
c1	c2
1	NULL
2	NULL
3	NULL
6	6
7	7
8	8
SELECT * FROM t1 ORDER BY c1;
c1	c2
1	NULL
2	NULL
3	NULL
6	6
7	7
8	8
ALTER ONLINE TABLE t1 ADD c CHAR(19);
INSERT INTO t1 values (11,1,"a");
ALTER ONLINE TABLE t1 ADD d FLOAT;
INSERT INTO t1 VALUES(12, 2,'b', -3.402823466E+38);
ALTER ONLINE TABLE t1 ADD f DECIMAL(5,2);
INSERT INTO t1 VALUES(14, 4,'d', -3.402823466E+38, 456.78);
ALTER ONLINE TABLE t1 ADD g DATETIME;
INSERT INTO t1 VALUES(15, 5,'e', -3.402823466E+38, 456.78, '2007-10-26 12:00:00');
ALTER ONLINE TABLE t1 ADD h BINARY(4);
INSERT INTO t1 VALUES(16, 6,'f', -3.402823466E+38, 456.78, '2007-10-26 12:00:00',"abcd");
**********************
"Master data"
**********************
SELECT * FROM t1 ORDER BY c1;
c1	c2	c	d	f	g	h
1	NULL	NULL	NULL	NULL	NULL	NULL
2	NULL	NULL	NULL	NULL	NULL	NULL
3	NULL	NULL	NULL	NULL	NULL	NULL
6	6	NULL	NULL	NULL	NULL	NULL
7	7	NULL	NULL	NULL	NULL	NULL
8	8	NULL	NULL	NULL	NULL	NULL
11	1	a	NULL	NULL	NULL	NULL
12	2	b	-3.40282e38	NULL	NULL	NULL
14	4	d	-3.40282e38	456.78	NULL	NULL
15	5	e	-3.40282e38	456.78	2007-10-26 12:00:00	NULL
16	6	f	-3.40282e38	456.78	2007-10-26 12:00:00	abcd
**********************
"Slave data"
**********************
SELECT * FROM t1 ORDER BY c1;
c1	c2	c	d	f	g	h
1	NULL	NULL	NULL	NULL	NULL	NULL
2	NULL	NULL	NULL	NULL	NULL	NULL
3	NULL	NULL	NULL	NULL	NULL	NULL
6	6	NULL	NULL	NULL	NULL	NULL
7	7	NULL	NULL	NULL	NULL	NULL
8	8	NULL	NULL	NULL	NULL	NULL
11	1	a	NULL	NULL	NULL	NULL
12	2	b	-3.40282e38	NULL	NULL	NULL
14	4	d	-3.40282e38	456.78	NULL	NULL
15	5	e	-3.40282e38	456.78	2007-10-26 12:00:00	NULL
16	6	f	-3.40282e38	456.78	2007-10-26 12:00:00	abcd
UPDATE t1 SET c = "abcdef", d = 3.402823466E+38, f = 987.65, g = '2007-10-22 22:22:22', h = "aaaa";
***************************
"Master Data After Update"
***************************
SELECT * FROM t1 ORDER BY c1;
c1	c2	c	d	f	g	h
1	NULL	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
2	NULL	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
3	NULL	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
6	6	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
7	7	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
8	8	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
11	1	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
12	2	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
14	4	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
15	5	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
16	6	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
*************************
"Slave Data After Update"
*************************
SELECT * FROM t1 ORDER BY c1;
c1	c2	c	d	f	g	h
1	NULL	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
2	NULL	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
3	NULL	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
6	6	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
7	7	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
8	8	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
11	1	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
12	2	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
14	4	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
15	5	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
16	6	abcdef	3.40282e38	987.65	2007-10-22 22:22:22	aaaa
DROP TABLE t1;
*************************************************
* Insert And Update New Added Columns With Commit
*************************************************
CREATE TABLE t1 (a INT UNSIGNED KEY, b INT UNSIGNED) ROW_FORMAT=DYNAMIC ENGINE NDB;
INSERT INTO t1 VALUES(1,1),(2,2);
BEGIN;
ALTER ONLINE TABLE t1 ADD c CHAR(19), ADD d VARCHAR(255), ADD e char(255);
INSERT INTO t1 VALUES (3,0,'3','3','3'),(4,0,'4','4','4'),(5,0,null,null,null);
UPDATE t1 SET c = 'aaa', d = 'bbb', e = 'ccc' WHERE a = 4;
COMMIT;
SELECT * FROM t1 ORDER BY a;
a	b	c	d	e
1	1	NULL	NULL	NULL
2	2	NULL	NULL	NULL
3	0	3	3	3
4	0	aaa	bbb	ccc
5	0	NULL	NULL	NULL
*************************
"Slave Data With Commit
*************************
SELECT * FROM t1 ORDER BY a;
a	b	c	d	e
1	1	NULL	NULL	NULL
2	2	NULL	NULL	NULL
3	0	3	3	3
4	0	aaa	bbb	ccc
5	0	NULL	NULL	NULL
***************************************************
* Insert And Update New Added Columns With Rollback
***************************************************
DROP TABLE t1;
CREATE TABLE t1 (a INT UNSIGNED KEY, b INT UNSIGNED) ROW_FORMAT=DYNAMIC ENGINE NDB;
INSERT INTO t1 VALUES(1,1),(2,2);
ALTER TABLE t1 ADD c CHAR(19), ADD d VARCHAR(255), ADD e char(255);
BEGIN;
INSERT INTO t1 VALUES (3,0,'3','3','3'),(4,0,'4','4','4'),(5,0,null,null,null);
UPDATE t1 SET c = 'aaa', d = 'bbb', e = 'ccc' WHERE a = 4;
ROLLBACK;
SHOW CREATE TABLE t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `a` int(10) unsigned NOT NULL,
  `b` int(10) unsigned DEFAULT NULL,
  `c` char(19) DEFAULT NULL,
  `d` varchar(255) DEFAULT NULL,
  `e` char(255) DEFAULT NULL,
  PRIMARY KEY (`a`)
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
SELECT * FROM t1 ORDER BY a;
a	b	c	d	e
1	1	NULL	NULL	NULL
2	2	NULL	NULL	NULL
*************************
"Slave Data With Rollback
*************************
SHOW CREATE TABLE t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `a` int(10) unsigned NOT NULL,
  `b` int(10) unsigned DEFAULT NULL,
  `c` char(19) DEFAULT NULL,
  `d` varchar(255) DEFAULT NULL,
  `e` char(255) DEFAULT NULL,
  PRIMARY KEY (`a`)
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
SELECT * FROM t1 ORDER BY a;
a	b	c	d	e
1	1	NULL	NULL	NULL
2	2	NULL	NULL	NULL
DROP TABLE t1;
include/rpl_end.inc

Filemanager

Name Type Size Permission Actions
ndb_rpl_2innodb.result File 41.21 KB 0644
ndb_rpl_2myisam.result File 41.21 KB 0644
ndb_rpl_2ndb.result File 15.83 KB 0644
ndb_rpl_2other.result File 32.39 KB 0644
ndb_rpl_add_column.result File 5.55 KB 0644
ndb_rpl_apply_status.result File 529 B 0644
ndb_rpl_auto_inc.result File 3.18 KB 0644
ndb_rpl_bank.result File 10.82 KB 0644
ndb_rpl_basic.result File 13.07 KB 0644
ndb_rpl_binlog_format_errors.result File 920 B 0644
ndb_rpl_bitfield.result File 14.11 KB 0644
ndb_rpl_blob.result File 6.92 KB 0644
ndb_rpl_break_3_chain.result File 2.25 KB 0644
ndb_rpl_bug22045.result File 2.19 KB 0644
ndb_rpl_check_for_mixed.result File 105 B 0644
ndb_rpl_circular.result File 5.18 KB 0644
ndb_rpl_circular_2ch.result File 1.53 KB 0644
ndb_rpl_circular_2ch_rep_status.result File 4.69 KB 0644
ndb_rpl_circular_simplex.result File 559 B 0644
ndb_rpl_conflict.result File 9.76 KB 0644
ndb_rpl_conflict_epoch.result File 107.75 KB 0644
ndb_rpl_conflict_max.result File 49.57 KB 0644
ndb_rpl_conflict_max_delete_win.result File 49.51 KB 0644
ndb_rpl_conflict_old.result File 49.75 KB 0644
ndb_rpl_ctype_ucs2_def.result File 703 B 0644
ndb_rpl_dd_advance.result File 8.54 KB 0644
ndb_rpl_dd_basic.result File 2.04 KB 0644
ndb_rpl_dd_partitions.result File 35.55 KB 0644
ndb_rpl_do_db.result File 1.07 KB 0644
ndb_rpl_do_table.result File 784 B 0644
ndb_rpl_empty_epoch.result File 817 B 0644
ndb_rpl_gap_event.result File 785 B 0644
ndb_rpl_idempotent.result File 1.49 KB 0644
ndb_rpl_ignore_db.result File 732 B 0644
ndb_rpl_init_rep_status.result File 2.49 KB 0644
ndb_rpl_innodb2ndb.result File 40.87 KB 0644
ndb_rpl_innodb_trans.result File 2.71 KB 0644
ndb_rpl_load.result File 1.27 KB 0644
ndb_rpl_logging.result File 2.29 KB 0644
ndb_rpl_mix_eng_trans.result File 10.14 KB 0644
ndb_rpl_mix_innodb.result File 3.98 KB 0644
ndb_rpl_mixed_tables.result File 6.91 KB 0644
ndb_rpl_multi.result File 1.7 KB 0644
ndb_rpl_myisam2ndb.result File 40.86 KB 0644
ndb_rpl_ndbapi_multi.result File 201 B 0644
ndb_rpl_rep_error.result File 1.69 KB 0644
ndb_rpl_rep_ignore.result File 1.03 KB 0644
ndb_rpl_skip_gap_event.result File 666 B 0644
ndb_rpl_slave_lsu.result File 53.81 KB 0644
ndb_rpl_slave_lsu_anyval.result File 54.73 KB 0644
ndb_rpl_slave_restart.result File 1.76 KB 0644
ndb_rpl_stm_innodb.result File 4.01 KB 0644
ndb_rpl_sync.result File 1.99 KB 0644
ndb_rpl_ui.result File 709 B 0644
ndb_rpl_ui2.result File 435 B 0644
ndb_rpl_ui3.result File 874 B 0644
rpl_truncate_7ndb.result File 2.91 KB 0644
rpl_truncate_7ndb_2.result File 2.91 KB 0644