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

MySQL数据库

开发平台:

Visual C++

  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. drop table if exists t11;
  8. drop table if exists t11;
  9. create table t2 (n int);
  10. insert into t2 values(4);
  11. create table t2 (s char(20));
  12. load data infile '../../std_data/words.dat' into table t2;
  13. insert into t2 values('five');
  14. create table t1 (m int);
  15. insert into t1 values(15),(16),(17);
  16. update t1 set m=20 where m=16;
  17. delete from t1 where m=17;
  18. create table t11 select * from t1;
  19. select * from t1;
  20. m
  21. 15
  22. 20
  23. select * from t2;
  24. n
  25. 4
  26. select * from t11;
  27. ERROR 42S02: Table 'test.t11' doesn't exist
  28. drop table if exists t1,t2,t11;
  29. show slave status;
  30. Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
  31. # 127.0.0.1 root MASTER_PORT 1 master-bin.000001 1340 slave-relay-bin.000002 1384 master-bin.000001 Yes Yes test.t1 0 0 1340 1384 None 0 No #
  32. create table t1 (ts timestamp);
  33. set one_shot time_zone='met';
  34. insert into t1 values('2005-08-12 00:00:00');
  35. set one_shot time_zone='met';
  36. select * from t1;
  37. ts
  38. 2005-08-12 00:00:00
  39. set one_shot time_zone='met';
  40. select * from t1;
  41. ts
  42. 2005-08-12 00:00:00