403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.70.188.61
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/ndb_rpl/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb_rpl/r/ndb_rpl_add_column.result
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 master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[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 TABLE t1 algorithm=inplace, ADD c CHAR(19);
INSERT INTO t1 values (11,1,"a");
ALTER TABLE t1 algorithm=inplace, ADD d FLOAT;
INSERT INTO t1 VALUES(12, 2,'b', -3.402823466E+38);
ALTER TABLE t1 algorithm=inplace, ADD f DECIMAL(5,2);
INSERT INTO t1 VALUES(14, 4,'d', -3.402823466E+38, 456.78);
ALTER TABLE t1 algorithm=inplace, ADD g DATETIME;
INSERT INTO t1 VALUES(15, 5,'e', -3.402823466E+38, 456.78, '2007-10-26 12:00:00');
ALTER TABLE t1 algorithm=inplace, 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 TABLE t1 algorithm=inplace, 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

Youez - 2016 - github.com/yon3zu
LinuXploit