MySQL客户端断开连接

2020-06-29 20:57

MySQL客户端输出rst消息

返回rst消息

其中一个原因是MySQL包Packet Number的值有误。

The sequence-id is incremented with each packet and may wrap around. It starts at 0 and is reset to 0 when a new command begins in the Command Phase.

每个交互命令的sequence id的值都是从0开始,然后每一个包的sequence id的值都自增。

不管是从client发给server,还是从server发给client,sequence id的值都是0开始,每发送一个包,sequence id的值都加1

 

官方定义:https://dev.mysql.com/doc/internals/en/sequence-id.html