简体   繁体   English

(2027,“格式错误的数据包”)

[英](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:-这两种解决方案都对我们有用:-

  1. Disabling the query-caching.禁用查询缓存。
  2. By installing the same MySQL-client version on both of the client machines (now it worked with query-caching enabled as well).通过在两台客户端机器上安装相同的 MySQL 客户端版本(现在它也启用了查询缓存)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 2027 (HY000):格式错误的数据包 - 登录期间 - ERROR 2027 (HY000): Malformed packet - during login MySQL:错误 2027 (HY000):格式错误的数据包 - MySQL: ERROR 2027 (HY000): Malformed packet 带有 Mysql 5.7 SqlAlchemy 的 Flask 格式错误的数据包 - Flask Malformed packet with Mysql 5.7 SqlAlchemy MariaDB 准备好的语句返回格式错误的通信数据包 - MariaDB Prepared Statement Returns Malformed communication packet MySQL LOAD DATA LOCAL INFILE期间的格式错误的数据包错误 - Malformed packet error during MySQL LOAD DATA LOCAL INFILE 运行makemigrations django后mysql格式错误的数据包错误 - mysql malformed packet error after running makemigrations django Laravel / MySQL 错误:SQLSTATE[HY000]:一般错误:1835 格式错误的通信数据包 - Laravel / MySQL Error: SQLSTATE[HY000]: General error: 1835 Malformed communication packet LOAD DATA LOCAL INFILE使用mysql2 gem导致格式错误的数据包错误 - LOAD DATA LOCAL INFILE causes Malformed packet error with mysql2 gem SQLSTATE[HY000]:一般错误:1835 LARAVEL 上的格式错误的通信数据包 - SQLSTATE[HY000]: General error: 1835 Malformed communication packet on LARAVEL 工作两年后,突然在 LOAD DATA LOCAL INFILE 上出现 MYSQL“格式错误的数据包” - Suddenly MYSQL "Malformed packet" on LOAD DATA LOCAL INFILE after two years of working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM