当前位置:网站首页>解决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
边栏推荐
- ORB_ Slam3 recurrence - Part I
- Kendryte K210 在freertos上的lcd屏幕的使用
- Stm32f105rbt6 internal flash debugging
- PHP memory management mechanism and garbage collection mechanism
- 11.2-HJ86 求最大连续bit数
- Why the future of digitalization depends on 3D real-time rendering
- "Deprecated gradle features were used in this build, making it incompatible with gradle 6.0" problem solving
- “Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0”问题解决
- Ch582 ble 5.0 uses Le coded broadcast and connection
- LeetCode 101. 对称二叉树 && 100. 相同的树 && 572. 另一棵树的子树
猜你喜欢

Related operations of figure

Cve-2022-33891 Apache spark shell command injection vulnerability recurrence

Today's sleep quality record is 84 points

STM8S003F3 内部flash调试

Flexible current probe selection guide

ORB_SLAM3复现——上篇

Boomi won the "best CEO in diversity" and the "best company in career growth" and ranked among the top 50 in the large company category

二叉树的相关操作

LeetCode 101. 对称二叉树 && 100. 相同的树 && 572. 另一棵树的子树

一周活动速递|深入浅出第8期;Meetup成都站报名进行中
随机推荐
srec_cat 常用参数的使用
Oracle导入出错:IMP-00038: 无法转换为环境字符集句柄
JZ32 从上往下打印二叉树
使用sqldeveloper连接mysql
Ch582 ble 5.0 uses Le coded broadcast and connection
二叉树的相关操作
Jz71 jump step expansion problem
Tang's little helper
Compilation of program
List conversion problem
GAN的详细介绍及其应用(全面且完整)
Joseph Ring problem
Problems faced by cloud XR and main application scenarios of cloud XR
乐观锁解析
How to create an effective help document?
Combined with GHS multi, use Reza E1 simulator to realize the simulation and debugging of Reza rh850 single chip microcomputer
pd.melt() vs reshape2::melt()
Number two 2010 real test site
mysql的小数number类型select之后丢失了前面的0
Boomi won the "best CEO in diversity" and the "best company in career growth" and ranked among the top 50 in the large company category