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

  1. source include/master-slave.inc;
  2. connection master;
  3. drop table if exists t1;
  4. CREATE TABLE t1 (name varchar(64), age smallint(3));
  5. INSERT INTO  t1 SET name='Andy', age=31;
  6. INSERT t1 SET name='Jacob', age=2;
  7. INSERT into t1 SET name='Caleb', age=1;
  8. ALTER TABLE t1 ADD id int(8) ZEROFILL AUTO_INCREMENT PRIMARY KEY;
  9. select * from t1;
  10. save_master_pos;
  11. connection slave;
  12. sync_with_master;
  13. select * from t1;
  14. connection master;
  15. drop table t1;
  16. save_master_pos;
  17. connection slave;
  18. sync_with_master;
  19.