MySQL报错Slave: received end packet from server, apparent master shutdown
发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,MySQL 一台从库的错误日志,大量报下面的错误信息2018-11-16 15:11:12 10951 [Note] Slave: received end packet from server, a
千家信息网最后更新 2025年11月07日MySQL报错Slave: received end packet from server, apparent master shutdown
MySQL 一台从库的错误日志,大量报下面的错误信息
2018-11-16 15:11:12 10951 [Note] Slave: received end packet from server, apparent master shutdown: 2018-11-16 15:11:12 10951 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000369' at position 2558432502018-11-16 15:11:12 10951 [Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.2018-11-16 15:20:09 10951 [Note] Slave: received end packet from server, apparent master shutdown: 2018-11-16 15:20:09 10951 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000369' at position 2764477732018-11-16 15:20:09 10951 [Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
这套DB有三台从库,而主库上面通过命令只能看到两台从库
root [(none)]> show slave hosts;+-----------+------+------+-----------+--------------------------------------+| Server_id | Host | Port | Master_id | Slave_UUID |+-----------+------+------+-----------+--------------------------------------+| 1373324 | | 3324 | 174144 | 5dfa3e4b-df15-11e8-8c37-06cbe47ccefb || 174192 | | 3306 | 174144 | b24e27f0-dce5-11e8-bdf4-0cc47a397e1c |+-----------+------+------+-----------+--------------------------------------+2 rows in set (0.00 sec)
到缺少的那台从库上面检查server-id,看有没有和其他从库相同
server-id并不相同
mysql> show global variables like 'server%id%';+----------------+--------------------------------------+| Variable_name | Value |+----------------+--------------------------------------+| server_id | 2461620 || server_id_bits | 32 || server_uuid | b24e27f0-dce5-11e8-bdf4-0cc47a397e1c |+----------------+--------------------------------------+3 rows in set (0.00 sec)
排除了server-id,还有可能是DB的uuid相同而导致从数据库注册不到主库。
删除数据库目录下面的server-id文件
# cd /disk1/mysql3320# cat auto.cnf [auto]server-uuid=11478f92-e973-11e8-8fcf-0cc47a663554# rm auto.cnf
之后重启问题从库,报错消失。
相同
数据
数据库
错误
面的
信息
命令
文件
日志
目录
问题
三台
检查
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
gps服务器价格
河北软件开发怎么做
闵行区创新软件开发售后服务
世界贸易组织数据库技术入股
服务器cdn加速
代理服务器怎样与服务器连接
数据库新建关系图在哪操作
apex加速哪个服务器人多
万德数据库和终端太贵了
服务器设置共享文件夹
洛阳网络技术大师
ci 数据库返回
德国哪个大学网络安全专业好
数据库查询筛选重复的数据
win7服务器管管理器
珠海电商系统软件开发
paidb数据库使用
汽车网络技术应用分析摘要
数据库连接的优点
网络技术专业服务
海湾crt显示无法连接服务器
网络安全警察在大学要学什么
百度公司网络安全工资
税务行业软件开发
安卓软件开发用到的算法
风力发电机软件开发
10年 软件开发 总结
朔州学网络技术
网络安全信息的股票有什么
湛江哪里招聘网络安全