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 / rpl000002.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  743 b   |  35 lines  |  [TEXT/ttxt]

  1. source include/master-slave.inc;
  2. connection master;
  3. use test;
  4. drop table if exists t1;
  5. create table t1 (n int auto_increment primary key);
  6. set insert_id = 2000;
  7. insert into t1 values (NULL),(NULL),(NULL);
  8. save_master_pos;
  9. connection slave;
  10. use test;
  11. sync_with_master;
  12. select * from t1;
  13. connection master;
  14. drop table t1;
  15. save_master_pos;
  16. connection slave;
  17. sync_with_master;
  18. slave stop;
  19. connection master;
  20. drop table if exists t2;
  21. create table t2(id int auto_increment primary key, created datetime);
  22. set timestamp=12345;
  23. insert into t2 set created=now();
  24. select * from t2;
  25. save_master_pos;
  26. connection slave;
  27. slave start;
  28. sync_with_master;
  29. select * from t2;
  30. connection master;
  31. drop table t2;
  32. save_master_pos;
  33. connection slave;
  34. sync_with_master;
  35.