【错误现象:】
#1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'qsiedu-assistant.frame_academy.sort' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
【问题原因】
this is incompatible with sql_mode=only_full_group_by
【问题检查】
【问题解决】
找到配置文件 my.ini,新增/修改sql_mode:
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
即: 去掉 only_full_group_by
重启 MySQL 即可。