gpt4 book ai didi

Mysql Slave 卡住了,因为 sql 和 io 显示 yes

转载 作者:行者123 更新时间:2023-11-30 01:02:33 25 4
gpt4 key购买 nike

帮我解决以下关于奴隶的问题..

mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: isp-db-mysql-1.be.infra
Master_User: slave
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: isp-db-mysql-1.052619
Read_Master_Log_Pos: 3138691
Relay_Log_File: isp-db-mysql-1-relay-bin.000002
Relay_Log_Pos: 32861
Relay_Master_Log_File: isp-db-mysql-1.052556
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 8109731
Relay_Log_Space: 6642282995
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: 1111111
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
1 row in set (0.01 sec)

中继日志位置没有移动,这使得从属设备滞后,如上所示。

我试图拉取二进制日志,但出现此错误

@mysqlbinlog未知变量'default-character-set=utf8'

在my.cnf中binlog模式是混合的

我尝试停止从站,启动从站..没有任何效果..

需要快速帮助,这是产品上的问题:-(

将 master 更改为已更改的日志,pos 是唯一的解决办法吗?

最佳答案

检查mysql日志。应该有一个错误。任何错误都会停止复制。

您可以通过告诉复制忽略错误来快速解决此问题,但这可能会导致复制不一致!查看此帖子:http://www.howtoforge.com/how-to-skip-certain-errors-in-mysql-replication

关于Mysql Slave 卡住了,因为 sql 和 io 显示 yes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19975408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com