Debian Codegraph @

mysql-test/suite/rpl/r/rpl_spec_variables_myisam.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 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.
5 [connection master]
6
7 * auto_increment_increment, auto_increment_offset *
8 SET @@global.auto_increment_increment=2;
9 SET @@session.auto_increment_increment=2;
10 SET @@global.auto_increment_offset=10;
11 SET @@session.auto_increment_offset=10;
12 SET @@global.auto_increment_increment=3;
13 SET @@session.auto_increment_increment=3;
14 SET @@global.auto_increment_offset=20;
15 SET @@session.auto_increment_offset=20;
16 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
17 INSERT INTO t1 (b) VALUES ('master');
18 INSERT INTO t1 (b) VALUES ('master');
19 SELECT * FROM t1 ORDER BY a;
20 a b
21 2 master
22 4 master
23 include/sync_slave_sql_with_master.inc
24 CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
25 INSERT INTO t1 (b) VALUES ('slave');
26 INSERT INTO t1 (b) VALUES ('slave');
27 INSERT INTO t2 (b) VALUES ('slave');
28 INSERT INTO t2 (b) VALUES ('slave');
29 SELECT * FROM t1 ORDER BY a;
30 a b
31 2 master
32 4 master
33 7 slave
34 10 slave
35 SELECT * FROM t2 ORDER BY a;
36 a b
37 1 slave
38 4 slave
39 DROP TABLE IF EXISTS t1,t2;
40 SET @@global.auto_increment_increment=1;
41 SET @@session.auto_increment_increment=1;
42 SET @@global.auto_increment_offset=1;
43 SET @@session.auto_increment_offset=1;
44 SET @@global.auto_increment_increment=1;
45 SET @@session.auto_increment_increment=1;
46 SET @@global.auto_increment_offset=1;
47 SET @@session.auto_increment_offset=1;
48 SET auto_increment_increment=1;
49 SET auto_increment_offset=1;
50
51 * character_set_database, collation_server *
52 [On Master]
53 SET @restore_master_character_set_database=@@global.character_set_database;
54 SET @restore_master_collation_server=@@global.collation_server;
55 SET @@global.character_set_database=latin1;
56 Warnings:
57 Warning 1681 Updating 'character_set_database' is deprecated. It will be made read-only in a future release.
58 SET @@session.character_set_database=latin1;
59 Warnings:
60 Warning 1681 Updating 'character_set_database' is deprecated. It will be made read-only in a future release.
61 SET @@global.collation_server=latin1_german1_ci;
62 SET @@session.collation_server=latin1_german1_ci;
63 [On Slave]
64 SET @restore_slave_character_set_database=@@global.character_set_database;
65 SET @restore_slave_collation_server=@@global.collation_server;
66 SET @@global.character_set_database=utf8;
67 Warnings:
68 Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
69 Warning 1681 Updating 'character_set_database' is deprecated. It will be made read-only in a future release.
70 SET @@session.character_set_database=utf8;
71 Warnings:
72 Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
73 Warning 1681 Updating 'character_set_database' is deprecated. It will be made read-only in a future release.
74 SET @@global.collation_server=utf8_bin;
75 Warnings:
76 Warning 3778 'utf8mb3_bin' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
77 SET @@session.collation_server=utf8_bin;
78 Warnings:
79 Warning 3778 'utf8mb3_bin' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
80 [On Master]
81 CREATE SCHEMA s1;
82 SHOW CREATE SCHEMA s1;
83 Database Create Database
84 s1 CREATE DATABASE `s1` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_german1_ci */ /*!80016 DEFAULT ENCRYPTION='N' */
85 CREATE TABLE s1.t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
86 SHOW CREATE TABLE s1.t1;
87 Table Create Table
88 t1 CREATE TABLE `t1` (
89 `a` int NOT NULL,
90 `b` varchar(10) COLLATE latin1_german1_ci DEFAULT NULL,
91 PRIMARY KEY (`a`)
92 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
93 include/sync_slave_sql_with_master.inc
94 [On Slave]
95 CREATE SCHEMA s2;
96 SHOW CREATE SCHEMA s2;
97 Database Create Database
98 s2 CREATE DATABASE `s2` /*!40100 DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_bin */ /*!80016 DEFAULT ENCRYPTION='N' */
99 CREATE TABLE s1.t2 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
100 CREATE TABLE s2.t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
101 SHOW CREATE TABLE s1.t1;
102 Table Create Table
103 t1 CREATE TABLE `t1` (
104 `a` int NOT NULL,
105 `b` varchar(10) COLLATE latin1_german1_ci DEFAULT NULL,
106 PRIMARY KEY (`a`)
107 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
108 SHOW CREATE TABLE s1.t2;
109 Table Create Table
110 t2 CREATE TABLE `t2` (
111 `a` int NOT NULL,
112 `b` varchar(10) COLLATE latin1_german1_ci DEFAULT NULL,
113 PRIMARY KEY (`a`)
114 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
115 SHOW CREATE TABLE s2.t1;
116 Table Create Table
117 t1 CREATE TABLE `t1` (
118 `a` int NOT NULL,
119 `b` varchar(10) COLLATE utf8mb3_bin DEFAULT NULL,
120 PRIMARY KEY (`a`)
121 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin
122 DROP TABLE s2.t1;
123 DROP SCHEMA s2;
124 SET @@global.collation_server=latin1_swedish_ci;
125 SET @@session.collation_server=latin1_swedish_ci;
126 [On Master]
127 SET @@global.collation_server=latin1_swedish_ci;
128 SET @@session.collation_server=latin1_swedish_ci;
129 DROP TABLE IF EXISTS s1.t1,s1.t2;
130 DROP SCHEMA s1;
131
132 * default_week_format *
133 SET @@global.default_week_format=0;
134 SET @@session.default_week_format=0;
135 SET @@global.default_week_format=1;
136 SET @@session.default_week_format=1;
137 CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10), c INT) ENGINE=MyISAM;
138 INSERT INTO t1 VALUES (1, 'master ', WEEK('2008-01-07'));
139 SELECT * FROM t1 ORDER BY a;
140 a b c
141 1 master 1
142 include/sync_slave_sql_with_master.inc
143 INSERT INTO t1 VALUES (2, 'slave ', WEEK('2008-01-07'));
144 SELECT * FROM t1 ORDER BY a;
145 a b c
146 1 master 1
147 2 slave 2
148 DROP TABLE t1;
149 SET @@global.default_week_format=0;
150 SET @@session.default_week_format=0;
151
152 * local_infile *
153 SET @old_local_infile= @@global.local_infile;
154 SET @@global.local_infile=0;
155 CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(20), c CHAR(254)) ENGINE=MyISAM;
156 LOAD DATA LOCAL INFILE 'FILE' INTO TABLE t1 (b);
157 SELECT COUNT(*) FROM t1;
158 COUNT(*)
159 70
160 include/sync_slave_sql_with_master.inc
161 LOAD DATA LOCAL INFILE 'FILE2' INTO TABLE t1 (b);
162 ERROR 42000: Loading local data is disabled; this must be enabled on both the client and server sides
163 SELECT COUNT(*) FROM t1;
164 COUNT(*)
165 70
166 SET @@global.local_infile=1;
167 DROP TABLE t1;
168
169 *** clean up ***
170 SET @@global.character_set_database=@restore_master_character_set_database;
171 Warnings:
172 Warning 1681 Updating 'character_set_database' is deprecated. It will be made read-only in a future release.
173 SET @@global.collation_server=@restore_master_collation_server;
174 include/sync_slave_sql_with_master.inc
175 SET @@global.character_set_database=@restore_slave_character_set_database;
176 Warnings:
177 Warning 1681 Updating 'character_set_database' is deprecated. It will be made read-only in a future release.
178 SET @@global.collation_server=@restore_slave_collation_server;
179 SET @@global.local_infile= @old_local_infile;
180
181 call mtr.add_suppression("The table 't[12]' is full");
182 include/rpl_end.inc