rpl000014.test
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. source include/master-slave.inc;
  2. source include/have_default_master.inc;
  3. connection master;
  4. show master status;
  5. save_master_pos;
  6. connection slave;
  7. sync_with_master;
  8. show slave status;
  9. change master to master_log_pos=73;
  10. slave stop;
  11. change master to master_log_pos=73;
  12. show slave status;
  13. slave start;
  14. show slave status;
  15. change master to master_log_pos=173;
  16. show slave status;
  17. connection master;
  18. show master status;
  19. create table if not exists foo(n int);
  20. drop table if exists foo;
  21. create table foo (n int);
  22. insert into foo values (1),(2),(3);
  23. save_master_pos;
  24. connection slave;
  25. change master to master_log_pos=73;
  26. sync_with_master;
  27. select * from foo;
  28. connection master;
  29. drop table foo;
  30. save_master_pos;
  31. connection slave;
  32. sync_with_master;