网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

分类: IT文章 • 2022-04-02 19:48:27

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

错误

在使用Mybatis generator时提示MySQL写入过大

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

环境

MySQL 8.0.11

Mybatis generator 1.3.7

查询

SHOW VARIABLES LIKE '%max_allowed_packet%'

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

修改my.cnf

在my.cnf中添加

max_allowed_packet=10M

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

重启mysql

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.

这样就可以了。

相关推荐

  • MySQL5中大数据错误:Packet for query is too large (****** > ******). You can change this value on the server by setting the max_allowed_packet' variable.;
  • Mysql You can change this value on the server by setting the max_allowed_packet' variable. 异常
  • Packet for query is too large (1706 > 1024). You can change this value on the server by setting the
  • Packet for query is too large (1660 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.
  • Packet for query is too large (5,145 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable.
  • SpringBoot集成Jersey
  • 使用lua给wireshark编写uTP的Dissector
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号