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 255843250 2018-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 276447773 2018-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
之後重啟問題從庫,報錯消失。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2220426/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Slave: received 0 length packet from server, apparent master shutdownServerAPPAST
- MySQL Master/Slave Master/MasterMySqlAST
- MySQL master and slave have equal MySQL server UUIDsMySqlASTServerUI
- MySQL master/slaveMySqlAST
- MySQL錯誤之mysql.slave_master_infoMySqlAST
- linux log中大量 Received SNMP packet(s) from UDPLinuxUDP
- 故障案例:主從同步報錯Fatal error: The slave I/O thread stops because master and slave have equal MySQL server主從同步ErrorthreadASTMySqlServer
- MySQL複製環境Slave報錯"Got fatal error 1236 from master when reading data"MySqlGoErrorAST
- MySql的Master/SlaveMySqlAST
- 消除linux log中的大量Received SNMP packet(s) from UDPLinuxUDP
- mysql master和slave配置MySqlAST
- mysql slave 轉為 masterMySqlAST
- MySQL 5.5 Master/Slave 配置MySqlAST
- The slave I/O thread stops because master and slave have equal MySQL server UUIDthreadASTMySqlServerUI
- master and slave have equal MySQL server UUIDs問題解決ASTMySqlServerUI
- MySQL 5.7複製報錯Client requested master to start replication from impossibleMySqlclientAST
- mysql master-slave複製錯誤[解決事例]MySqlAST
- mysql master slave 主從同步MySqlAST主從同步
- mysql 同步 master-slave薦MySqlAST
- Mysql Slave群切換MasterMySqlAST
- Mysql Slave群切換Master (=)MySqlAST
- 【Mysql】Slave_IO_Running: No---Got fatal error 1236 from masterMySqlGoErrorAST
- MySQL主從複製報錯:Got fatal error 1236 from master when reading data fromMySqlGoErrorAST
- Linux Log中大量snmpd[10932]: Received SNMP packet(s) from UDP[final]LinuxUDP
- MySQL報錯:waiting for initial communication packetMySqlAI
- mysql建立master/slave詳細步驟MySqlAST
- 利用mysql slave 修復master MyISAM tableMySqlAST
- Redis master and slaveRedisAST
- MySQL主從同步報Client requested master to start replication from positionMySql主從同步clientAST
- MYSQL The Server Shutdown Process(筆記)MySqlServer筆記
- MySQL報錯:Packets larger than max_allowed_packet are not allMySql
- Mysql 5.6 Master和Slave 主備切換MySqlAST
- MYSQL的master/slave資料同步配置(轉)MySqlAST
- mysql 8 報錯 ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositoryMySqlErrorAIStruct
- 【MySQL】Last_IO_Errno: 1593 server-uuid重複導致slave報錯MySqlASTServerUI
- mysql slave錯誤skipMySql
- DocumentDB 報錯“not master”AST
- Mysql連線錯誤:Lost connection to Mysql server at 'waiting for initial communication packet'MySqlServerAI