当前位置:网站首页>解决You can change this value on the server by setting the ‘max_allowed_packet‘ variable报错
解决You can change this value on the server by setting the ‘max_allowed_packet‘ variable报错
2022-07-25 18:22:00 【梦远星帆】
错误提示:
Unsatisfied dependency expressed through field 'jobService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysJobServiceImpl': Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn't store job: Packet for query is too large (2,128 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable. [See nested exception: com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (2,128 > 1,024). You can change this value on the server by setting the 'max_allowed_packet' variable
mysql数据库中的这个这个东西小于加载数据

可以先输入语句查看:show VARIABLES like '%max_allowed_packet%'; 查询 value
解决方法:
第一种:
设置默认值为10M:set global max_allowed_packet = 5*1024*1024;
退出命令行,重启mysql服务,再进入。即可
第二种:
如果恢复默认设置:
修改my.ini 在[mysqld]段或者mysql的server配置段进行修改。(终极修改, 修改后重启数据库,永久生效)
如下: max_allowed_packet = 5M
边栏推荐
猜你喜欢

Update 3dcat real time cloud rendering V2.1.2 release

【网页性能优化】SPA(单页面应用)首屏加载速度慢怎么办?

pd.melt() vs reshape2::melt()

Leetcode 101. symmetric binary tree & 100. same tree & 572. Subtree of another tree

MySQL 索引优化全攻略

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现

How to create an effective help document?

Safe operation instructions for oscilloscope probe that must be read by engineers

Oracle import error: imp-00038: unable to convert to environment character set handle

1--- electronic physical cognition
随机推荐
Detailed explanation of super full mavan label
想要做好软件测试,可以先了解AST、SCA和渗透测试
PHP memory management mechanism and garbage collection mechanism
电流探头在ECU、电气系统电流测量的应用
tkinter GUI版通信录管理系统
Analysis of regression problem, modeling and prediction
C language libcurl cross compilation
How to choose digital twin visualization platform
OV7725 yuv 640* [email protected] Profile
Chapter 5 Basic Scripting: Shell Variables
MySQL lost the previous 0 after the decimal number type select
408第二章线性表
【网页性能优化】SPA(单页面应用)首屏加载速度慢怎么办?
What are the methods of traversing arrays? What is the difference between the performance of the for loop foreach for/in for/of map and how to choose?
Conversion between integer and string in C language
Tensor to img && imge to tensor (pytorch的tensor转换)
数二2010真题考点
柔性电流探头选型指南
[QNX Hypervisor 2.2用户手册]9.4 dryrun
Practice of RTC performance automation tool in memory optimization scenario