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

MySQL

Development Platform:

Visual C++

  1. connect (master,localhost,root,,test,0,mysql-master.sock);
  2. connect (slave,localhost,root,,test,0,mysql-slave.sock);
  3. connection master;
  4. reset master;
  5. grant file on *.* to replicate@localhost identified by
  6.  'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
  7. connection slave;
  8. slave start;
  9. connection master;
  10. drop table if exists t1;
  11. create table t1(n int);
  12. insert into t1 values(24);
  13. save_master_pos;
  14. connection slave;
  15. sync_with_master;
  16. select * from t1;
  17. connection master;
  18. drop table t1;
  19. save_master_pos;
  20. connection slave;
  21. sync_with_master;