Debian Codegraph @

mysql-test/suite/ndb_rpl/r/ndb_rpl_skip_ddl.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 [connection slave]
7 show variables like 'replica_parallel_workers';
8 Variable_name Value
9 replica_parallel_workers 1
10 show variables like 'replica_skip_errors';
11 Variable_name Value
12 replica_skip_errors 1007,1008,1050,1051,1054,1060,1061,1068,1091,1146
13 create database extra;
14 use test;
15 create table t1 (a int primary key, rb int) engine=ndb;
16 create table t3 (a int primary key, b int, c int) engine=ndb;
17 create table t4 (a int primary key, b int) engine=ndb;
18 create table t5 (a int primary key, b int, key yale (b)) engine=ndb;
19 [connection master]
20 #Create database (already exists on replica)
21 create database extra;
22 drop database extra;
23 #Drop database (does not exist on replica)
24 set sql_log_bin=0;
25 create database surplus;
26 set sql_log_bin=1;
27 drop database surplus;
28 use test;
29 #Create table which already exists on replica
30 create table t1 (a int primary key, sb int) engine=ndb;
31 #Drop table which does not exist on replica
32 set sql_log_bin=0;
33 create table t2 (a int primary key, sb int) engine=ndb;
34 set sql_log_bin=1;
35 drop table t2;
36 #Add column to table which already exists on replica table
37 set sql_log_bin=0;
38 create table t3 (a int primary key, b int) engine=ndb;
39 set sql_log_bin=1;
40 alter table t3 add column c int;
41 Warnings:
42 Warning 1478 Converted FIXED field 'c' to DYNAMIC to enable online ADD COLUMN
43 #Drop column which does not exist on replica table
44 set sql_log_bin=0;
45 create table t4 (a int primary key, b int, c int) engine=ndb;
46 set sql_log_bin=1;
47 alter table t4 drop column c;
48 #Add index to table which already exists on replica table
49 set sql_log_bin=0;
50 create table t5 (a int primary key, b int, key chubb (b)) engine=ndb;
51 set sql_log_bin=1;
52 alter table t5 add index yale(b);
53 Warnings:
54 Warning 1831 Duplicate index 'yale' defined on the table 'test.t5'. This is deprecated and will be disallowed in a future release.
55 #Drop index from table which does not exist on replica table
56 alter table t5 drop index chubb;
57 include/sync_slave_sql_with_master.inc
58 [connection slave]
59 show tables;
60 Tables_in_test
61 t1
62 t3
63 t4
64 t5
65 show create table t1;
66 Table Create Table
67 t1 CREATE TABLE `t1` (
68 `a` int NOT NULL,
69 `rb` int DEFAULT NULL,
70 PRIMARY KEY (`a`)
71 ) ENGINE=ndbcluster DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
72 show create table t3;
73 Table Create Table
74 t3 CREATE TABLE `t3` (
75 `a` int NOT NULL,
76 `b` int DEFAULT NULL,
77 `c` int DEFAULT NULL,
78 PRIMARY KEY (`a`)
79 ) ENGINE=ndbcluster DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
80 show create table t4;
81 Table Create Table
82 t4 CREATE TABLE `t4` (
83 `a` int NOT NULL,
84 `b` int DEFAULT NULL,
85 PRIMARY KEY (`a`)
86 ) ENGINE=ndbcluster DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
87 show create table t5;
88 Table Create Table
89 t5 CREATE TABLE `t5` (
90 `a` int NOT NULL,
91 `b` int DEFAULT NULL,
92 PRIMARY KEY (`a`),
93 KEY `yale` (`b`)
94 ) ENGINE=ndbcluster DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
95 [connection master]
96 drop table t1;
97 drop table t3;
98 drop table t4;
99 drop table t5;
100 include/rpl_end.inc