mysql 数据同步Relay log read failure: Could not parse relay_MySQL

php中文网
发布: 2016-06-01 13:45:52
原创
1654人浏览过

bitsCN.com

错误 信息:
mysql> show slave status/g
*************************** 1. row ***************************
slave_io_state: waiting for master to send event
master_host: ip
master_user: repl
master_port: 3306
connect_retry: 30
master_log_file: mysql-bin.x
read_master_log_pos: pos_x
relay_log_file: relay-bin.y
relay_log_pos: pos_y
relay_master_log_file: mysql-bin.z
slave_io_running: yes
slave_sql_running: no
replicate_do_db:
replicate_ignore_db:
replicate_do_table:
replicate_ignore_table:
replicate_wild_do_table:
replicate_wild_ignore_table:
last_errno: 1594
last_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, 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.
skip_counter: 0
exec_master_log_pos: pos_z
relay_log_space: 4132423412
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: null
master_ssl_verify_server_cert: no
last_io_errno: 0
last_io_error:
last_sql_errno: 1594
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, 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.
1 row in set (0.00 sec)
 
 
看了网上的一些解决方案
 
没试不知道可行不可行。
 
仔细看了一下slave服务器 只发现内存用超了。
 
看了mysql 日志
110714  6:55:28 [error] error reading packet from server: lost connection to mysql server during query ( server_errno=2013)
110714  6:55:28 [note] slave i/o thread: failed reading log event, reconnecting to retry, log 'mysql-bin.000046' at postion 297414128
110714 13:33:31 [error] mysql_slave: out of memory (needed 808236 bytes)
110714 13:33:31 [error] out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
110714 13:33:41 [error] mysql_slave: out of memory (needed 808236 bytes)
110714 13:33:41 [error] out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
110714 13:33:51 [error] mysql_slave: out of memory (needed 808236 bytes)
110714 13:33:51 [error] out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
110714 13:34:01 [error] mysql_slave: out of memory (needed 808236 bytes)
110714 13:34:01 [error] out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
110714 13:34:01 [error] mysql_slave: out of memory (needed 808236 bytes)
110714 13:34:01 [error] out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
110714 14:25:16 [error] mysql_slave: out of memory (needed 26819862 bytes)
110714 14:25:16 [error] error in log_event::read_log_event(): 'found invalid event in binary log', data_len: 26819824, event_type: 2
110714 14:25:16 [error] error reading relay log event: slave sql thread aborted because of i/o error
110714 14:25:16 [error] slave sql: 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, 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. error_code: 1594
110714 14:25:16 [error] slave (additional info): out of memory (needed 26819862 bytes) error_code: 5
110714 14:25:16 [warning] slave: out of memory (needed 26819862 bytes) error_code: 5
110714 14:25:16 [error] error running query, slave sql thread aborted. fix the problem, and restart the slave sql thread with "slave start". we stopped at log 'mysql-bin.000046' position 517103753


好像是说内存不够 于是停了几个服务 然后 stop slave; slave start; 问题解决

通义灵码
通义灵码

阿里云出品的一款基于通义大模型的智能编码辅助工具,提供代码智能生成、研发智能问答能力

通义灵码 304
查看详情 通义灵码
bitsCN.com
相关标签:
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号