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

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. stop slave;
  8. create table t1(n int not null auto_increment primary key);
  9. insert into t1 values (1),(2),(3),(4);
  10. drop table t1;
  11. create table t2(n int not null auto_increment primary key);
  12. insert into t2 values (1),(2);
  13. insert into t2 values (3),(4);
  14. drop table t2;
  15. show binlog events;
  16. Log_name Pos Event_type Server_id Orig_log_pos Info
  17. master-bin.000001 4 Start 1 4 Server ver: VERSION, Binlog ver: 3
  18. master-bin.000001 79 Query 1 79 use `test`; create table t1(n int not null auto_increment primary key)
  19. master-bin.000001 172 Query 1 172 use `test`; insert into t1 values (1),(2),(3),(4)
  20. master-bin.000001 244 Query 1 244 use `test`; drop table t1
  21. master-bin.000001 292 Query 1 292 use `test`; create table t2(n int not null auto_increment primary key)
  22. master-bin.000001 385 Query 1 385 use `test`; insert into t2 values (1),(2)
  23. master-bin.000001 449 Query 1 449 use `test`; insert into t2 values (3),(4)
  24. master-bin.000001 513 Query 1 513 use `test`; drop table t2
  25. start slave until master_log_file='master-bin.000001', master_log_pos=244;
  26. select * from t1;
  27. n
  28. 1
  29. 2
  30. 3
  31. 4
  32. show slave status;
  33. 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
  34. # 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 561 slave-relay-bin.000002 # master-bin.000001 Yes No 0 0 244 # Master master-bin.000001 244 No #
  35. start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
  36. select * from t1;
  37. n
  38. 1
  39. 2
  40. 3
  41. 4
  42. show slave status;
  43. 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
  44. # 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 561 slave-relay-bin.000002 # master-bin.000001 Yes No 0 0 244 # Master master-no-such-bin.000001 291 No #
  45. start slave until relay_log_file='slave-relay-bin.000002', relay_log_pos=537;
  46. select * from t2;
  47. n
  48. 1
  49. 2
  50. show slave status;
  51. 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
  52. # 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 561 slave-relay-bin.000002 # master-bin.000001 Yes No 0 0 449 # Relay slave-relay-bin.000002 537 No #
  53. start slave;
  54. stop slave;
  55. start slave until master_log_file='master-bin.000001', master_log_pos=561;
  56. show slave status;
  57. 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
  58. # 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 561 slave-relay-bin.000002 # master-bin.000001 Yes No 0 0 561 # Master master-bin.000001 561 No #
  59. start slave until master_log_file='master-bin', master_log_pos=561;
  60. ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
  61. start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12;
  62. ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
  63. start slave until master_log_file='master-bin.000001';
  64. ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
  65. start slave until relay_log_file='slave-relay-bin.000002';
  66. ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
  67. start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;
  68. ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
  69. start slave sql_thread;
  70. start slave until master_log_file='master-bin.000001', master_log_pos=561;
  71. Warnings:
  72. Note 1254 Slave is already running