You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
833 B

  1. # Test case for BUG #10780
  2. --source include/master-slave.inc
  3. connection master;
  4. grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
  5. connection slave;
  6. stop slave;
  7. change master to master_user='rpl',master_password='rpl';
  8. start slave;
  9. connection master;
  10. --disable_warnings
  11. drop table if exists t1;
  12. --enable_warnings
  13. create table t1 (n int);
  14. insert into t1 values (1);
  15. save_master_pos;
  16. connection slave;
  17. sync_with_master;
  18. select * from t1;
  19. connection master;
  20. delete from mysql.user where user='rpl';
  21. flush privileges;
  22. connection slave;
  23. stop slave;
  24. start slave;
  25. --replace_result $MASTER_MYPORT MASTER_MYPORT
  26. # Column 1 is replaced, since the output can be either
  27. # "Connecting to master" or "Waiting for master update"
  28. --replace_column 1 # 7 # 8 # 9 # 22 # 23 #
  29. --vertical_results
  30. show slave status;
  31. # end of 4.1 tests