错误信息:

2020-04-17 08:43:28,810 [http-nio-443-exec-8] ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] - 
Packet for query is too large (1673 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.

当查询数据比较大的时候在网络中传输,超过默认值就会报以上错误

解决方法,找到mysql配置文件.my.ini,在[mysqld]下面添加以下配置

max_allowed_packet = 100M

query_cache_limit = 40M

修改好以后重启mysql服务

 

转载自:https://blog.csdn.net/xiaoping0915/article/details/64587042

相关文章:

  • 2021-06-08
  • 2022-01-20
  • 2021-12-06
  • 2022-12-23
  • 2022-01-20
  • 2021-11-12
  • 2021-11-09
  • 2021-12-01
猜你喜欢
  • 2021-07-23
  • 2021-05-16
  • 2021-08-10
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案