com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column ‘d.total_rated_power_transformer‘; this is incompatible with sql_mode=only_full_group_by
find / -name "my.cnf"
vi /etc/my.cnf
加一行 sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
如果原本有sql_mode,去掉ONLY_FULL_GROUP_BY
service mysqld restart
mysql报错this is incompatible with sql_mode=only_full_group_by
原文:https://www.cnblogs.com/yybrhr/p/10158911.html