rpl_chain_temp_table.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. slave stop;
  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. slave start;
  7. reset master;
  8. change master to master_host='127.0.0.1',master_port=9307, master_user='root';
  9. start slave;
  10. create temporary table t1 (a int);
  11. create temporary table t1 (a int);
  12. show status like 'slave_open_temp_tables';
  13. Variable_name Value
  14. Slave_open_temp_tables 2
  15. create temporary table t1 (a int);
  16. create temporary table t1 (a int);
  17. show status like 'slave_open_temp_tables';
  18. Variable_name Value
  19. Slave_open_temp_tables 4
  20. stop slave;
  21. insert into t1 values(1);
  22. create table t2 as select * from t1;
  23. start slave;
  24. show status like 'slave_open_temp_tables';
  25. Variable_name Value
  26. Slave_open_temp_tables 4
  27. select * from t2;
  28. a
  29. 1
  30. drop table t2;