基于MySQL 8.0从库磁盘满报13121错误的处理
  BJi6MelAHLhF 2023年11月02日 58 0

背景: 基于GTID的从库服务器磁盘使用率100%,扩容磁盘后报错,开启复制,过一会就报错13121错误

一.报错现象: 

Last_SQL_Errno: 13121

Last_SQL_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, the server was unable to fetch a keyring key required to open an encrypted relay log file, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.

二.报错原因:

当磁盘写满后,mysql无法向元信息表中写数据,中继日志不完整,直接启动复制就出现报错了


三.解决步骤:

1.先停止复制

stop slave;


2.重置从库配置

reset slave all;


3.重新设置主从信息

master_host='192.168.0.23',master_user='repl',master_password='123456',master_port=3306,master_auto_position=1;


4.查看复制状态

show slave status\G;



【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  eHipUjOuzYYH   2023年12月10日   30   0   0 mysqlsqlUser
  hHWnOnebRjW2   2023年11月27日   25   0   0 PostgreSQLsqlbash
  jnZtF7Co41Wg   2023年11月24日   31   0   0 mysqlApachecentos
  oNkSXggMkQHo   2023年11月24日   32   0   0 Dockermysql
  9JCEeX0Eg8g4   2023年11月28日   17   0   0 主数据数据库mysql
  9JCEeX0Eg8g4   2023年12月11日   26   0   0 mysql配置文件