Slave: received end packet from server, apparent master shutdown:
數據庫的一臺從產生大量的如下錯誤: 140121 13:56:07 [Note] Slave: received end packet from server, apparent master shutdown:
140121 13:56:07 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log ‘mysql-bin.003062′ at postion 220648071
140121 13:56:09 [Note] Slave: received end packet from server, apparent master shutdown:
140121 13:56:09 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log ‘mysql-bin.003062′ at postion 220718334
140121 13:56:10 [Note] Slave: received end packet from server, apparent master shutdown:
140121 13:56:10 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log ‘mysql-bin.003062′ at postion 221074239
140121 13:56:12 [Note] Slave: received end packet from server, apparent master shutdown:
原來slave上的my.cnf 配置文件是一臺臺拷貝的,忘記修改server-id值,導致server-id值相同,切記,切記,server-id值一定保持唯一。
參考:http://nettedfish.sinaapp.com/blog/2013/07/24/how-to-generate-unique-server_id/
這種情況下復制會左右搖擺。當兩個從庫的server-id相同時,如果從庫1已經連接上主庫,此時從庫2也需要連接到主庫,發現之前有server-id相同的連接,就會先注銷該連接,然后重新注冊。 兩臺從庫不停的注冊,不停的注銷,會產生很多relay log文件,查看從庫狀態會看到relay log文件名不停改變,從庫的復制狀態一會是yes一會是正在連接中
總結
以上是生活随笔為你收集整理的Slave: received end packet from server, apparent master shutdown:的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【MySql】 BlackHole :黑
- 下一篇: 源端RAC数据库删除实例操作时Golde