[英](2027, 'Malformed packet')
I am using Django with RDS along with Aptible deployement.我正在使用 Django 和 RDS 以及 Aptible 部署。 I started receiving lots
(2027, 'Malformed packet')
for a while but when I run the same query using Django "shell" OR "dbshell" then the query works fine.我开始收到很多
(2027, 'Malformed packet')
一段时间,但是当我使用 Django“shell”或“dbshell”运行相同的查询时,查询工作正常。
I am not able to find any lead around that, found some articles/answers but now one could help.我找不到任何线索,找到了一些文章/答案,但现在可以提供帮助。
Try by disabling query-caching on MySQL if it works.如果可行,请尝试禁用 MySQL 上的查询缓存。 There is a bug reported in MySQL with MySQL-client and MySQL-server versions reported here .
MySQL 报告了一个错误,这里报告了 MySQL-client 和 MySQL-server 版本。 Usually, Malformed Packet error occurs when the MySQL client can't understand the packets sent by the MySQL server.
通常,Malformed Packet 错误发生在 MySQL 客户端无法理解 MySQL 服务器发送的数据包时。
In our case, we were hitting the same MySQL Server (DB) from two different client machines with different versions of the MySQL client.在我们的案例中,我们从两台不同的客户端机器上访问相同的 MySQL 服务器 (DB),并使用不同版本的 MySQL 客户端。 So, with query-caching enabled, whenever we were running the same query with both of the client machines, we were getting this error.
因此,启用查询缓存后,每当我们在两台客户端计算机上运行相同的查询时,都会收到此错误。
Both of these solutions worked for us:-这两种解决方案都对我们有用:-
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.