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

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. grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
  8. stop slave;
  9. change master to master_user='rpl',master_password='rpl';
  10. start slave;
  11. drop table if exists t1;
  12. create table t1 (n int);
  13. insert into t1 values (1);
  14. select * from t1;
  15. n
  16. 1
  17. delete from mysql.user where user='rpl';
  18. flush privileges;
  19. stop slave;
  20. start slave;
  21. show slave status;
  22. Slave_IO_State #
  23. Master_Host 127.0.0.1
  24. Master_User rpl
  25. Master_Port MASTER_MYPORT
  26. Connect_Retry 1
  27. Master_Log_File master-bin.000001
  28. Read_Master_Log_Pos #
  29. Relay_Log_File #
  30. Relay_Log_Pos #
  31. Relay_Master_Log_File master-bin.000001
  32. Slave_IO_Running No
  33. Slave_SQL_Running Yes
  34. Replicate_Do_DB
  35. Replicate_Ignore_DB
  36. Replicate_Do_Table
  37. Replicate_Ignore_Table
  38. Replicate_Wild_Do_Table
  39. Replicate_Wild_Ignore_Table
  40. Last_Errno 0
  41. Last_Error
  42. Skip_Counter 0
  43. Exec_Master_Log_Pos #
  44. Relay_Log_Space #
  45. Until_Condition None
  46. Until_Log_File
  47. Until_Log_Pos 0
  48. Master_SSL_Allowed No
  49. Master_SSL_CA_File
  50. Master_SSL_CA_Path
  51. Master_SSL_Cert
  52. Master_SSL_Cipher
  53. Master_SSL_Key
  54. Seconds_Behind_Master NULL