修改数据库的最大group_concat连接长度:
SET GLOBAL group_concat_max_len = 102400;
SET SESSION group_concat_max_len = 102400;
#要彻底修改,在MySQL配置文件(my.ini)中加上
group_concat_max_len = -1 # -1为最大值或填入你要的最大长度
#并重启mysql
#在客户端执行语句:
#show variables like "group_concat_max_len";
创建表报错:
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
命令行执行
select version(), @@sql_mode;
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));