Debian Codegraph @

mysql-test/suite/rpl/r/rpl_truncate_2myisam.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 include/rpl_reset.inc
7 **** On Master ****
8 CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM;
9 INSERT INTO t1 VALUES (1,1), (2,2);
10 include/sync_slave_sql_with_master.inc
11 **** On Master ****
12 TRUNCATE TABLE t1;
13 include/sync_slave_sql_with_master.inc
14 include/diff_tables.inc [master:t1, slave:t1]
15 ==== Test using a table with delete triggers ====
16 **** On Master ****
17 SET @count := 1;
18 CREATE TABLE t2 (a INT, b LONG) ENGINE=MyISAM;
19 CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
20 include/sync_slave_sql_with_master.inc
21 **** On Master ****
22 TRUNCATE TABLE t1;
23 include/sync_slave_sql_with_master.inc
24 include/diff_tables.inc [master:t2, slave:t2]
25 DROP TABLE t1,t2;
26 include/sync_slave_sql_with_master.inc
27 include/rpl_reset.inc
28 **** On Master ****
29 CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM;
30 INSERT INTO t1 VALUES (1,1), (2,2);
31 include/sync_slave_sql_with_master.inc
32 **** On Master ****
33 DELETE FROM t1;
34 include/sync_slave_sql_with_master.inc
35 include/diff_tables.inc [master:t1, slave:t1]
36 ==== Test using a table with delete triggers ====
37 **** On Master ****
38 SET @count := 1;
39 CREATE TABLE t2 (a INT, b LONG) ENGINE=MyISAM;
40 CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
41 include/sync_slave_sql_with_master.inc
42 **** On Master ****
43 DELETE FROM t1;
44 include/sync_slave_sql_with_master.inc
45 include/diff_tables.inc [master:t2, slave:t2]
46 DROP TABLE t1,t2;
47 include/sync_slave_sql_with_master.inc
48 include/rpl_end.inc