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.

22 lines
592 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 temporary table t1 (n int);
  8. insert into t1 values(1);
  9. show status like 'Slave_open_temp_tables';
  10. Variable_name Value
  11. Slave_open_temp_tables 1
  12. delete from t1;
  13. show status like 'Slave_open_temp_tables';
  14. Variable_name Value
  15. Slave_open_temp_tables 1
  16. truncate t1;
  17. show status like 'Slave_open_temp_tables';
  18. Variable_name Value
  19. Slave_open_temp_tables 1
  20. show status like 'Slave_open_temp_tables';
  21. Variable_name Value
  22. Slave_open_temp_tables 0