home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / rpl000014.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  885 b   |  36 lines  |  [TEXT/ttxt]

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