mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
testcase for bug 10780 was not added in the previous commit
This commit is contained in:
28
mysql-test/t/rpl_slave_status.test
Normal file
28
mysql-test/t/rpl_slave_status.test
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Test case for BUG #10780
|
||||||
|
source include/master-slave.inc
|
||||||
|
connection master;
|
||||||
|
grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
|
||||||
|
connection slave;
|
||||||
|
stop slave;
|
||||||
|
change master to master_user='rpl',master_password='rpl';
|
||||||
|
start slave;
|
||||||
|
connection master;
|
||||||
|
--disable_warnings
|
||||||
|
drop table if exists t1;
|
||||||
|
--enable_warning
|
||||||
|
create table t1 (n int);
|
||||||
|
insert into t1 values (1);
|
||||||
|
save_master_pos;
|
||||||
|
connection slave;
|
||||||
|
sync_with_master;
|
||||||
|
select * from t1;
|
||||||
|
connection master;
|
||||||
|
delete from mysql.user where user='rpl';
|
||||||
|
flush privileges;
|
||||||
|
connection slave;
|
||||||
|
stop slave;
|
||||||
|
start slave;
|
||||||
|
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
||||||
|
show slave status;
|
||||||
|
|
||||||
|
# end of 4.1 tests
|
Reference in New Issue
Block a user