master-info-repository=TABLE && relay-log-info-repository=TABLE 后的一些对应参照

对应关系

文件
master.infomysql.slave_master_info
relay-log.infomysql.slave_relay_log_info

下面是从官方文档整理出来的 master.info 文件和 mysql.slave_master_info 表和 show slave status 命令的输出中的各字段对应关系:

Line in master.info Fileslave_master_info Table ColumnSHOW SLAVE STATUS ColumnDescription
1Number_of_lines[None]Number of lines in the file, or columns in the table
2Master_log_nameMaster_Log_FileThe name of the master binary log currently being read from the master
3Master_log_posRead_Master_Log_PosThe current position within the master binary log that have been read from the master
4HostMaster_HostThe host name of the master
5User_nameMaster_UserThe user name used to connect to the master
6User_passwordPassword (not shown by SHOW SLAVE STATUS)The password used to connect to the master
7PortMaster_PortThe network port used to connect to the master
8Connect_retryConnect_RetryThe period (in seconds) that the slave will wait before trying to reconnect to the master
9Enabled_sslMaster_SSL_AllowedIndicates whether the server supports SSL connections
10Ssl_caMaster_SSL_CA_FileThe file used for the Certificate Authority (CA) certificate
11Ssl_capathMaster_SSL_CA_PathThe path to the Certificate Authority (CA) certificates
12Ssl_certMaster_SSL_CertThe name of the SSL certificate file
13Ssl_cipherMaster_SSL_CipherThe list of possible ciphers used in the handshake for the SSL connection
14Ssl_keyMaster_SSL_KeyThe name of the SSL key file
15Ssl_verify_server_certMaster_SSL_Verify_Server_CertWhether to verify the server certificate
16Heartbeat[None]Interval between replication heartbeats, in seconds
17BindMaster_BindWhich of the slave's network interfaces should be used for connecting to the master
18Ignored_server_idsReplicate_Ignore_Server_IdsThe list of server IDs to be ignored. Note that for Ignored_server_ids the list of server IDs is preceded by the total number of server IDs to ignore.
19UuidMaster_UUIDThe master's unique ID
20Retry_countMaster_Retry_CountMaximum number of reconnection attempts permitted
21Ssl_crl[None]Path to an ssl certificate revocation list file
22Ssl_crl_path[None]Path to a directory containing ssl certificate revocation list files
23Enabled_auto_positionAuto_positionIf autopositioning is in use or not
24Channel_nameChannel_nameThe name of the replication channel

 

下面是从官方文档整理出来的 relay-log.info 文件和 mysql.slave_relay_log_info 表和 show slave status 命令的输出中的各字段对应关系:

Line in relay-log.infoslave_relay_log_info Table ColumnSHOW SLAVE STATUS ColumnDescription
1Number_of_lines[None]Number of lines in the file or columns in the table
2Relay_log_nameRelay_Log_FileThe name of the current relay log file
3Relay_log_posRelay_Log_PosThe current position within the relay log file; events up to this position have been executed on the slave database
4Master_log_nameRelay_Master_Log_FileThe name of the master binary log file from which the events in the relay log file were read
5Master_log_posExec_Master_Log_PosThe equivalent position within the master's binary log file of events that have already been executed
6Sql_delaySQL_DelayThe number of seconds that the slave must lag the master
7Number_of_workers[None]The number of slave worker threads for executing replication events (transactions) in parallel
8Id[None]ID used for internal purposes; currently this is always 1
9Channel_nameChannel_nameThe name of the replication channel

在旧版本(MySQL 5.6之前), relay-log.info 信息如下,并且系统不存在 slave_relog_log_info表

LineStatus ColumnDescription
1Relay_Log_FileThe name of the current relay log file
2Relay_Log_PosThe current position within the relay log file; events up to this position have been executed on the slave database
3Relay_Master_Log_FileThe name of the master binary log file from which the events in the relay log file were read
4Exec_Master_Log_PosThe equivalent position within the master's binary log file of events that have already been executed
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值