Mysql handshake appears got packets out of order

during the handshake with the mysql server, I received the ERR_PACKET packet returned by the server, which indicated that got packets out of order, I checked the package carefully to make sure there was no problem with the data. At the same time, the max_allowed_packet_size&& wait_timeout of the server was also set up normally. What kind of problem is this? has anyone encountered this problem?

Apr.14,2021

self-question and answer, which has been solved, is that the packet sent is too large. Specifically, the julia send [34 _ 0xa _ 0xb] interprets the first byte as 0x34 rather than 30x4, which causes the packet to be too long.


exactly how to solve this problem, I also encountered this problem.


how to solve the problem

Menu