|
| 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 master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. |
| 5 | +[connection master] |
| 6 | +grant usage on *.* to tmp@localhost; |
| 7 | +show global variables like 'gtid_executed'; |
| 8 | +Variable_name Value |
| 9 | +gtid_executed UUID:1 |
| 10 | +create table t1(id int) engine = InnoDB; |
| 11 | +insert into t1 values(1),(2),(3); |
| 12 | +set executed_gtid_set '00000000-0000-0000-0000-000000000000:1-2'; |
| 13 | +show global variables like 'gtid_executed'; |
| 14 | +Variable_name Value |
| 15 | +gtid_executed 00000000-0000-0000-0000-000000000000:1-2, |
| 16 | +UUID:1-4 |
| 17 | +set session debug='+d,add_executed_gtid_set_rotate_error'; |
| 18 | +set executed_gtid_set '00000000-0000-0000-0000-000000000000:3-4'; |
| 19 | +ERROR HY000: set executed_gtid_set fail, error: 'write binlog or binlog rotate failed'. |
| 20 | +set session debug='-d,add_executed_gtid_set_rotate_error'; |
| 21 | +show global variables like 'gtid_executed'; |
| 22 | +Variable_name Value |
| 23 | +gtid_executed 00000000-0000-0000-0000-000000000000:1-4, |
| 24 | +UUID:1-5 |
| 25 | +stop slave; |
| 26 | +include/wait_for_slave_to_stop.inc |
| 27 | +set executed_gtid_set '00000000-0000-0000-0000-000000000000:1-20'; |
| 28 | +set executed_gtid_set '00000000-0000-0000-0000-000000000000:9-70'; |
| 29 | +set executed_gtid_set '00000000-0000-0000-0000-000000000001:9-70'; |
| 30 | +set executed_gtid_set 'eb0597f-34f7-11e5-be40-00163e000ea5:9-70'; |
| 31 | +ERROR HY000: Malformed GTID set specification 'eb0597f-34f7-11e5-be40-00163e000ea5:9-70'. |
| 32 | +set executed_gtid_set '00000000-0000-0000-0000-000000000001:8-6'; |
| 33 | +set executed_gtid_set '00000000-0000-0000-0000-000000000001:8--16'; |
| 34 | +ERROR HY000: Malformed GTID set specification '00000000-0000-0000-0000-000000000001:8--16'. |
| 35 | +show global variables like 'gtid_executed'; |
| 36 | +Variable_name Value |
| 37 | +gtid_executed 00000000-0000-0000-0000-000000000000:1-70, |
| 38 | +00000000-0000-0000-0000-000000000001:9-70, |
| 39 | +UUID:1-9 |
| 40 | +start slave; |
| 41 | +include/wait_for_slave_to_start.inc |
| 42 | +show global variables like 'gtid_executed'; |
| 43 | +Variable_name Value |
| 44 | +gtid_executed 00000000-0000-0000-0000-000000000000:1-70, |
| 45 | +00000000-0000-0000-0000-000000000001:9-70, |
| 46 | +UUID:1-9 |
| 47 | +set executed_gtid_set '00000000-0000-0000-0000-000000000000:1-2000'; |
| 48 | +ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation |
| 49 | +show global variables like 'gtid_executed'; |
| 50 | +Variable_name Value |
| 51 | +gtid_executed 00000000-0000-0000-0000-000000000000:1-70, |
| 52 | +00000000-0000-0000-0000-000000000001:9-70, |
| 53 | +UUID:1-9 |
| 54 | +drop user tmp@localhost; |
| 55 | +drop table t1; |
| 56 | +include/rpl_end.inc |
0 commit comments