In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'guli.score.s_id'; this is incompatible with sql_mode=only_full_group_by
方案1:找到my.cnf文件追加上
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
方案2.
set sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'