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

  1. source include/master-slave.inc;
  2. connection master;
  3. use test;
  4. drop database if exists d1;
  5. create database d1;
  6. create table d1.t1 ( n int);
  7. alter table d1.t1 add m int;
  8. insert into d1.t1 values (1,2);
  9. create table d1.t2 (n int);
  10. insert into d1.t2 values (45);
  11. rename table d1.t2 to d1.t3, d1.t1 to d1.t2;
  12. save_master_pos;
  13. connection slave;
  14. sync_with_master;
  15. select * from d1.t2;
  16. select * from d1.t3;
  17. connection master;
  18. drop database d1;
  19. save_master_pos;
  20. connection slave;
  21. sync_with_master;
  22.