summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/r/galera_as_slave_autoinc.result
blob: b3a4cd770444bc46b316ba64b15cc7be3616fb8d (plain)
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
START SLAVE USER='root';
Warnings:
Note	1759	Sending passwords in plain text without SSL/TLS is extremely insecure.
SET SESSION binlog_format='STATEMENT';
CREATE TABLE t1 (
i int(11) NOT NULL AUTO_INCREMENT,
c char(32) DEFAULT 'dummy_text',
PRIMARY KEY (i)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
insert into t1(i) values(null);
select * from t1;
i	c
1	dummy_text
insert into t1(i) values(null), (null), (null);
select * from t1;
i	c
1	dummy_text
2	dummy_text
3	dummy_text
4	dummy_text
show variables like 'binlog_format';
Variable_name	Value
binlog_format	STATEMENT
show variables like '%auto_increment%';
Variable_name	Value
auto_increment_increment	1
auto_increment_offset	1
wsrep_auto_increment_control	ON
select * from t1;
i	c
1	dummy_text
2	dummy_text
3	dummy_text
4	dummy_text
show variables like 'binlog_format';
Variable_name	Value
binlog_format	ROW
show variables like '%auto_increment%';
Variable_name	Value
auto_increment_increment	2
auto_increment_offset	1
wsrep_auto_increment_control	ON
select * from t1;
i	c
1	dummy_text
2	dummy_text
3	dummy_text
4	dummy_text
show variables like 'binlog_format';
Variable_name	Value
binlog_format	ROW
show variables like '%auto_increment%';
Variable_name	Value
auto_increment_increment	2
auto_increment_offset	2
wsrep_auto_increment_control	ON
DROP TABLE t1;
STOP SLAVE;
RESET SLAVE ALL;
SET GLOBAL binlog_format='ROW';
RESET MASTER;