MySQL复制过滤器
MariaDB > show slave status\G;*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.1.101#主节点host
Master_User: repluser#主节点授权复制的账户
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: master-log.000003#要复制的主节点的二进制日志
Read_Master_Log_Pos: 936 #从此二进制日志的什么位置开始复制
Relay_Log_File: relay-log.000007#从节点的中继日志,即将二进制日志通过IO读入中继日志的
Relay_Log_Pos: 643
Relay_Master_Log_File: master-log.000003
Slave_IO_Running: Yes#从节点的IO功能是否开启,重要
Slave_SQL_Running: Yes#从节点的SQL功能是否开启,重要
Replicate_Do_DB: #白名单,Do表示允许,即不过滤
Replicate_Ignore_DB: #黑名单,Ignore表示拒绝,即过滤,除了数据库,还可以对表做过滤
Replicate_Do_Table:
Replicate_Ignore_Table: mydb.tbl#ignore表示黑名单即过滤,所以我们在从节点show tables;是看不到此表的
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 936
Relay_Log_Space: 1216
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
#从节点落后于主节点的时间,单位是秒。主节点写入时是并行执行,而从节点IO读取则是串行操作,所以当主节点频繁写入时,主从间的差异会越来越大
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0#IO和SQL错误信息
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
1 row in set (0.00 sec)
页:
[1]