File: rpl_xa_xplugin.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 (104 lines) | stat: -rw-r--r-- 2,234 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
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 is being used inside a XA transaction");
[connection master]
[connection slave]
Starting the slave server
RUN CHANGE REPLICATION SOURCE TO SOURCE_HOST= '127.0.0.1', SOURCE_USER= 'root'

0 rows affected
RUN START SLAVE

0 rows affected
Mysqlx.Ok {
  msg: "bye!"
}
ok
[connection master]
include/sync_slave_sql_with_master.inc
RUN USE test

0 rows affected
RUN CREATE TABLE T2 (C1 CHAR(20) PRIMARY KEY, C2 INT )

0 rows affected
RUN INSERT INTO T2 VALUES ('ABC',23)

1 rows affected
RUN UPDATE T2 SET C2 = C2 + 27

1 rows affected
Rows matched: 1  Changed: 1  Warnings: 0
RUN INSERT INTO T1 VALUES (4,34)

1 rows affected
RUN INSERT INTO T2 VALUES ('ABCDEF',23)

1 rows affected
RUN INSERT INTO T1 VALUES (5,1234)

1 rows affected
RUN INSERT INTO T2 VALUES ('ABCDEFGHIJ',23)

1 rows affected
RUN DELETE FROM T2 WHERE C1 = 'ABC'

1 rows affected
RUN INSERT INTO T2 VALUES ('XYZ',23)

1 rows affected
RUN UPDATE T2 SET C1 = 'ABC' WHERE C1 ='XYZ'

1 rows affected
Rows matched: 1  Changed: 1  Warnings: 0
Mysqlx.Ok {
  msg: "bye!"
}
ok
Checking the value on T1
RUN SELECT C2 FROM test.T1 WHERE C1=1
Checking the value on T2
RUN SELECT C2 FROM test.T2 WHERE C1="ABC"
Mysqlx.Ok {
  msg: "bye!"
}
ok
RUN USE test

0 rows affected
RUN DROP TABLE T2

0 rows affected
Mysqlx.Ok {
  msg: "bye!"
}
ok
[connection master]
RUN USE test

0 rows affected
RUN DROP TABLE T1

0 rows affected
Mysqlx.Ok {
  msg: "bye!"
}
ok
include/sync_slave_sql_with_master.inc
Stopping slave
RUN STOP SLAVE;

0 rows affected
Warnings generated:
WARNING | 1287 | 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
Mysqlx.Ok {
  msg: "bye!"
}
ok
[connection master]
[connection slave]
include/start_slave.inc
include/rpl_end.inc