You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
547 B

  1. stop slave;
  2. drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
  3. reset master;
  4. reset slave;
  5. drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
  6. start slave;
  7. create table t2(n int);
  8. create table t1(n int not null auto_increment primary key);
  9. insert into t1 values (NULL),(NULL);
  10. truncate table t1;
  11. insert into t1 values (4),(NULL);
  12. stop slave;
  13. start slave;
  14. insert into t1 values (NULL),(NULL);
  15. flush logs;
  16. truncate table t1;
  17. insert into t1 values (10),(NULL),(NULL),(NULL),(NULL),(NULL);
  18. select * from t1 ORDER BY n;
  19. n
  20. 10
  21. 11
  22. 12
  23. 13
  24. 14
  25. 15
  26. drop table t1,t2;