mariadb/mysql-test/suite/rpl/r/rpl_slave_status.result

37 lines
895 B
Text
Raw Normal View History

2005-07-28 19:08:01 -06:00
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
==== Create new replication user ====
[on master]
2005-07-28 19:08:01 -06:00
grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
[on slave]
2005-07-28 19:08:01 -06:00
stop slave;
change master to master_user='rpl',master_password='rpl';
start slave;
==== Do replication as new user ====
[on master]
2005-07-28 19:08:01 -06:00
create table t1 (n int);
insert into t1 values (1);
[on slave]
2005-07-28 19:08:01 -06:00
select * from t1;
n
1
==== Delete new replication user ====
[on master]
drop user rpl@127.0.0.1;
2005-07-28 19:08:01 -06:00
flush privileges;
[on slave]
==== Restart slave without privileges =====
2005-07-28 19:08:01 -06:00
stop slave;
start slave;
==== Verify that Slave_IO_Running = No ====
Slave_IO_Running = No (should be No)
==== Cleanup (Note that slave IO thread is not running) ====
drop table t1;
delete from mysql.user where user='rpl';
[on master]
drop table t1;