Debian Codegraph @

mysql-test/suite/rpl_gtid/r/rpl_db_stmts_ignored.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 # Test replicate-ignore-db=db1 filter
8 #
9 include/rpl_restart_server.inc [server_number=2 gtids=on parameters: --replicate-ignore-db=db1 --skip_replica_start=FALSE]
10 [connection master]
11 #
12 # Execute 'CREATE DATABASE db1' on Master.
13 #
14 CREATE DATABASE db1;
15 #
16 # Sync with Slave (using gtid values)
17 #
18 include/sync_slave_sql_with_master.inc
19 #
20 # Check that even after sync is completed 'db1' does not exists
21 # on Slave which implies that 'CREATE DATABASE db1' is filtered
22 # out.
23 #
24 USE db1;
25 ERROR 42000: Unknown database 'db1'
26 #
27 # Execute other database commands (ALTER/DROP) on Master.
28 #
29 [connection master]
30 ALTER DATABASE db1 CHARACTER SET latin1;
31 DROP DATABASE db1;
32 #
33 # Check that we are able to sync with slave successfully
34 # which implies that those commands are filtered out.
35 # If they were executed by Slave, that will break replication
36 # as we do not have 'db1' database on Slave.
37 include/sync_slave_sql_with_master.inc
38 #
39 # Test replicate-do-db=db2 filter
40 #
41 include/rpl_restart_server.inc [server_number=2 gtids=on parameters: --replicate-do-db=db2 --skip_replica_start=FALSE]
42 [connection master]
43 #
44 # Execute 'CREATE DATABASE db1' on Master.
45 #
46 CREATE DATABASE db1;
47 #
48 # Sync with Slave (using gtid values)
49 #
50 include/sync_slave_sql_with_master.inc
51 #
52 # Check that even after sync is completed 'db1' does not exists
53 # on Slave which implies that 'CREATE DATABASE db1' is filtered
54 # out.
55 #
56 USE db1;
57 ERROR 42000: Unknown database 'db1'
58 #
59 # Execute other database commands (ALTER/DROP) on Master.
60 #
61 [connection master]
62 ALTER DATABASE db1 CHARACTER SET latin1;
63 DROP DATABASE db1;
64 #
65 # Check that we are able to sync with slave successfully
66 # which implies that those commands are filtered out.
67 # If they were executed by Slave, that will break replication
68 # as we do not have 'db1' database on Slave.
69 include/sync_slave_sql_with_master.inc
70 #
71 # Test replicate-wild-ignore-table=db1.% filter
72 #
73 include/rpl_restart_server.inc [server_number=2 gtids=on parameters: --replicate-wild-ignore-table=db1.% --skip_replica_start=FALSE]
74 [connection master]
75 #
76 # Execute 'CREATE DATABASE db1' on Master.
77 #
78 CREATE DATABASE db1;
79 #
80 # Sync with Slave (using gtid values)
81 #
82 include/sync_slave_sql_with_master.inc
83 #
84 # Check that even after sync is completed 'db1' does not exists
85 # on Slave which implies that 'CREATE DATABASE db1' is filtered
86 # out.
87 #
88 USE db1;
89 ERROR 42000: Unknown database 'db1'
90 #
91 # Execute other database commands (ALTER/DROP) on Master.
92 #
93 [connection master]
94 ALTER DATABASE db1 CHARACTER SET latin1;
95 DROP DATABASE db1;
96 #
97 # Check that we are able to sync with slave successfully
98 # which implies that those commands are filtered out.
99 # If they were executed by Slave, that will break replication
100 # as we do not have 'db1' database on Slave.
101 include/sync_slave_sql_with_master.inc
102 #
103 # Test replicate-wild-ignore-table=db1.% and --replicate-do-db=db2
104 # filter combination
105 include/rpl_restart_server.inc [server_number=2 gtids=on parameters: --replicate-do-db=db2 --replicate-wild-ignore-table=db1.t% --skip_replica_start=FALSE]
106 [connection master]
107 #
108 # Execute 'CREATE DATABASE db1' on Master.
109 #
110 CREATE DATABASE db1;
111 #
112 # Sync with Slave (using gtid values)
113 #
114 include/sync_slave_sql_with_master.inc
115 #
116 # Check that even after sync is completed 'db1' does not exists
117 # on Slave which implies that 'CREATE DATABASE db1' is filtered
118 # out.
119 #
120 USE db1;
121 ERROR 42000: Unknown database 'db1'
122 #
123 # Execute other database commands (ALTER/DROP) on Master.
124 #
125 [connection master]
126 ALTER DATABASE db1 CHARACTER SET latin1;
127 DROP DATABASE db1;
128 #
129 # Check that we are able to sync with slave successfully
130 # which implies that those commands are filtered out.
131 # If they were executed by Slave, that will break replication
132 # as we do not have 'db1' database on Slave.
133 include/sync_slave_sql_with_master.inc
134 #
135 # Cleanup
136 #
137 include/rpl_end.inc