| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
==== Initialize ==== |
| 4 |
connection master; |
| 5 |
CREATE TABLE tinnodb (a INT) ENGINE = INNODB; |
| 6 |
SHOW CREATE TABLE tinnodb; |
| 7 |
Table Create Table |
| 8 |
tinnodb CREATE TABLE `tinnodb` ( |
| 9 |
`a` int(11) DEFAULT NULL |
| 10 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci |
| 11 |
set @old_debug= @@debug_dbug; |
| 12 |
set @@debug_dbug= 'd,do_not_write_xid'; |
| 13 |
==== Test ==== |
| 14 |
INSERT INTO tinnodb VALUES (1); |
| 15 |
SELECT * FROM tinnodb ORDER BY a; |
| 16 |
a |
| 17 |
1 |
| 18 |
[on slave] |
| 19 |
include/sync_slave_io_with_master.inc |
| 20 |
==== Verify results on slave ==== |
| 21 |
include/stop_slave.inc |
| 22 |
SELECT "" AS Slave_IO_State; |
| 23 |
Slave_IO_State |
| 24 |
|
| 25 |
SELECT "" AS Last_SQL_Error; |
| 26 |
Last_SQL_Error |
| 27 |
|
| 28 |
SELECT "" AS Last_IO_Error; |
| 29 |
Last_IO_Error |
| 30 |
|
| 31 |
SELECT * FROM tinnodb ORDER BY a; |
| 32 |
a |
| 33 |
==== Clean up ==== |
| 34 |
connection master; |
| 35 |
DROP TABLE tinnodb; |
| 36 |
set @@debug_dbug= @old_debug; |
| 37 |
connection slave; |
| 38 |
DROP TABLE tinnodb; |
| 39 |
include/rpl_end.inc |