Error querying database. Cause: java.sql.SQLException: Row 28 was cut by GROUP_CONCAT()

 

 

长度不足导致

 

##设置大小
SET GLOBAL group_concat_max_len=10240000;
SET SESSION group_concat_max_len=10240000;
##或者
SET GLOBAL group_concat_max_len=-1;  -- 最大值
SET SESSION group_concat_max_len=-1 ;-- 最大值



##验证
select @@global.group_concat_max_len;
#
show variables like 'group_concat_max_len';

设置完毕重启

 

 

还不行 手动 找到 my.ini文件

在最后加

group_concat_max_len = 102400

 

 

posted @ 2021-11-16 14:52  ___mouM  阅读(1386)  评论(0编辑  收藏  举报