File: rpl_change_master.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (180 lines) | stat: -rw-r--r-- 9,379 bytes parent folder | download
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
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("Replica I/O: The replica I/O thread stops because a fatal error is encountered when it tried to SET @master_binlog_checksum");
create table t1(n int);
select * from t1;
n
stop slave sql_thread;
Warnings:
Warning	1287	'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
insert into t1 values(1);
insert into t1 values(2);
include/wait_for_slave_param.inc [Read_Master_Log_Pos]
include/stop_slave.inc
CHANGE REPLICATION SOURCE to SOURCE_USER='root';
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.
start slave;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
select * from t1;
n
1
2
drop table t1;
include/rpl_reset.inc
create table t1 (a int);
insert into t1 values (1);
flush logs;
insert into t1 values (2);
include/diff_tables.inc [master:t1, slave:t1]
include/stop_slave.inc
delete from t1 where a=2;
CHANGE REPLICATION SOURCE TO relay_log_file='slave-relay-bin.000005', relay_log_pos=4;
start slave sql_thread;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_sql_to_start.inc
include/diff_tables.inc [master:t1, slave:t1]
start slave io_thread;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_io_to_start.inc
set global relay_log_purge=1;
drop table t1;
include/rpl_reset.inc
Master_Retry_Count: 
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=20;
include/start_slave.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=0;
include/start_slave.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=1;
include/start_slave.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=10;
include/start_slave.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=RETRY_COUNT_SET;
SELECT RETRY_COUNT_EXPECTED AS current_retry_count;
current_retry_count
RETRY_COUNT_EXPECTED
CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY= 2;
CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY= 1;
include/rpl_restart_server.inc [server_number=2]
include/start_slave.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=10;
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT='a';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''a'' at line 1
CHANGE REPLICATION SOURCE TO SOURCE_RETRY_COUNT=-1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 1
include/start_slave.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY= 200, IGNORE_SERVER_IDS= (100, 200, 300, 400, 500);
include/rpl_restart_server.inc [server_number=2]
include/start_slave.inc
Eexpected values: "100, 200, 300, 400, 500" == "100, 200, 300, 400, 500" or 200 == 200
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO IGNORE_SERVER_IDS= ();
include/start_slave.inc
include/stop_slave.inc
create table t1(n int, b varchar(256));
insert into t1 values(1, <source_bind>);
CHANGE REPLICATION SOURCE to SOURCE_HOST=<source_bind>, SOURCE_BIND=<source_bind>;
start slave;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_to_start.inc
drop table t1;
include/stop_slave.inc
create table t1(n int, b varchar(256));
insert into t1 values(1, <source_bind>);
CHANGE REPLICATION SOURCE to  SOURCE_BIND=<source_bind>;
start slave;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_io_error.inc [errno=2003]
got expected error 2003
include/stop_slave.inc
CHANGE REPLICATION SOURCE to SOURCE_BIND='';
start slave;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_to_start.inc
drop table t1;
include/stop_slave.inc
create table t1(n int, b varchar(256));
insert into t1 values(1, <source_bind>);
CHANGE REPLICATION SOURCE to SOURCE_HOST=<source_bind>, SOURCE_BIND=<source_bind>;
start slave;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_to_start.inc
drop table t1;
include/stop_slave.inc
create table t1(n int, b varchar(256));
insert into t1 values(1, <source_bind>);
CHANGE REPLICATION SOURCE to  SOURCE_BIND=<source_bind>;
start slave;
Warnings:
Warning	1287	'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
include/wait_for_slave_to_start.inc
drop table t1;
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_HOST='SAVE_MASTER_HOST';
include/start_slave.inc
include/rpl_reset.inc
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_HOST='', SOURCE_PORT=SOURCE_PORT;
ERROR HY000: Incorrect arguments to SOURCE_HOST
CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_HOST='127.0.0.1\n127.0.0.1', SOURCE_PORT=SOURCE_PORT;
ERROR HY000: Incorrect argument contains not-allowed LF value: '127.0.0.1
127.0.0.1'
CHANGE REPLICATION SOURCE TO SOURCE_USER='root\n', SOURCE_HOST='master2.mycompany.com', SOURCE_PORT=SOURCE_PORT, SOURCE_USER='replication', SOURCE_PASSWORD='bigs3cret', SOURCE_LOG_FILE='master2-bin.001', SOURCE_LOG_POS=4;
ERROR HY000: Incorrect argument contains not-allowed LF value: 'root
'
CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_HOST='master2.mycompany.com', SOURCE_PORT=SOURCE_PORT, SOURCE_USER='repli\ncation', SOURCE_PASSWORD='bigs3cret', SOURCE_LOG_FILE='master2-bin.001', SOURCE_LOG_POS=4;
ERROR HY000: Incorrect argument contains not-allowed LF value: 'repli
cation'
CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_HOST='master2.mycompany.com', SOURCE_PORT=SOURCE_PORT, SOURCE_USER='replication', SOURCE_PASSWORD='bigs3cret', SOURCE_LOG_FILE='master2-bin.\n001', SOURCE_LOG_POS=4;
ERROR HY000: Incorrect argument contains not-allowed LF value: 'master2-bin.
001'
CHANGE REPLICATION SOURCE TO SOURCE_USER='root', SOURCE_HOST='127.0.0.1', SOURCE_PORT=SOURCE_PORT;
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.
include/start_slave.inc
Master_Host = '127.0.0.1'
include/rpl_reset.inc
include/assert.inc [Password length is 32]
SET SQL_LOG_BIN=0;
CREATE USER rpl@127.0.0.1 IDENTIFIED BY '012345678901234567890123456789ab';
GRANT REPLICATION SLAVE ON *.* TO rpl@127.0.0.1;
SET SQL_LOG_BIN=1;
include/stop_slave.inc
CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_USER='rpl', SOURCE_PASSWORD='012345678901234567890123456789ab', SOURCE_SSL=1;
Warnings:
Note	1759	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	1760	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.
include/start_slave_io.inc
include/check_slave_param.inc [Slave_IO_Running]
CHANGE REPLICATION SOURCE TO SOURCE_HOST='127.0.0.1', SOURCE_USER='rpl', SOURCE_PASSWORD='x012345678901234567890123456789ab', SOURCE_SSL=1;
ERROR HY000: The password provided for the replication user exceeds the maximum length of 32 characters
SET SQL_LOG_BIN=0;
DROP USER rpl@127.0.0.1;
FLUSH PRIVILEGES;
SET SQL_LOG_BIN=1;
include/stop_slave_io.inc
CHANGE REPLICATION SOURCE TO SOURCE_USER = 'root', SOURCE_PASSWORD = '', SOURCE_SSL=0;
Warnings:
Note	1759	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	1760	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.
include/start_slave.inc
include/rpl_end.inc