mysql8 this is incompatible with sql_mode=only_full_group_by 解决方案: 解决方案: 问题是mysql group by 不写全导致的 可以终端登陆mysql执行下SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,‘ONLY_FULL_GROUP_BY’,’’));