| 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 |
reset master; |
| 7 |
stop slave; |
| 8 |
Warnings: |
| 9 |
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead |
| 10 |
Generate something in the Masters Binlog |
| 11 |
use test; |
| 12 |
create table t1 (a int primary key, b int) engine=ndb; |
| 13 |
insert into t1 values (1,1); |
| 14 |
Initial state |
| 15 |
select * from mysql.ndb_apply_status; |
| 16 |
server_id epoch log_name start_pos end_pos |
| 17 |
Ndb_slave_max_replicated_epoch: 0 |
| 18 |
set @slave_server_id:= @@server_id; |
| 19 |
select @slave_server_id; |
| 20 |
@slave_server_id |
| 21 |
2 |
| 22 |
Default, no data, max replicated epoch will be 0. |
| 23 |
reset slave; |
| 24 |
Warnings: |
| 25 |
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead |
| 26 |
start slave; |
| 27 |
Warnings: |
| 28 |
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead |
| 29 |
select server_id from mysql.ndb_apply_status order by server_id; |
| 30 |
server_id |
| 31 |
1 |
| 32 |
Ndb_slave_max_replicated_epoch: 0 |
| 33 |
Default, load of own serverid from ndb_apply_status, should be 111 |
| 34 |
drop table test.t1; |
| 35 |
stop slave; |
| 36 |
Warnings: |
| 37 |
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead |
| 38 |
reset slave; |
| 39 |
Warnings: |
| 40 |
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead |
| 41 |
insert into mysql.ndb_apply_status values (@slave_server_id, 111, 'Fictional log', 222, 333); |
| 42 |
start slave; |
| 43 |
Warnings: |
| 44 |
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead |
| 45 |
select server_id from mysql.ndb_apply_status order by server_id; |
| 46 |
server_id |
| 47 |
1 |
| 48 |
2 |
| 49 |
Ndb_slave_max_replicated_epoch: 111 |
| 50 |
drop table test.t1; |
| 51 |
Check that reset slave resets Ndb_slave_max_replicated_epoch to zero |
| 52 |
stop slave; |
| 53 |
Warnings: |
| 54 |
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead |
| 55 |
Ndb_slave_max_replicated_epoch: 111 |
| 56 |
reset slave; |
| 57 |
Warnings: |
| 58 |
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead |
| 59 |
Ndb_slave_max_replicated_epoch: 0 |
| 60 |
Multiple-channel, load highest of configured serverids, should be 222 |
| 61 |
set @other_local_server_id=@slave_server_id+1; |
| 62 |
set @other_remote_server_id=@slave_server_id+2; |
| 63 |
insert into mysql.ndb_apply_status values (@slave_server_id, 111, 'Fictional log', 222, 333); |
| 64 |
insert into mysql.ndb_apply_status values (@other_local_server_id, 222, 'Fictional log', 222, 333); |
| 65 |
insert into mysql.ndb_apply_status values (@other_remote_server_id, 444, 'Fictional log', 222, 333); |
| 66 |
CHANGE REPLICATION SOURCE TO IGNORE_SERVER_IDS=(3);; |
| 67 |
start slave; |
| 68 |
Warnings: |
| 69 |
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead |
| 70 |
select server_id from mysql.ndb_apply_status order by server_id; |
| 71 |
server_id |
| 72 |
1 |
| 73 |
2 |
| 74 |
3 |
| 75 |
4 |
| 76 |
Ndb_slave_max_replicated_epoch: 222 |
| 77 |
stop slave; |
| 78 |
Warnings: |
| 79 |
Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead |
| 80 |
CHANGE REPLICATION SOURCE TO IGNORE_SERVER_IDS= (); |
| 81 |
start slave; |
| 82 |
Warnings: |
| 83 |
Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead |
| 84 |
drop table test.t1; |
| 85 |
include/rpl_end.inc |