### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Expression #3ofSELECT list isnotinGROUPBY clause andcontains nonaggregated column'hrdatabase.d.id' which isnot functionally dependent on columns inGROUPBY clause; this is incompatible with sql_mode=only_full_group_by
Windows系统下位置:C:\ProgramData\MySQL\MySQL Server 5.7
打开文件,把sql-mod中开头的 ONLY_FULL_GROUP_BY 去掉后保存即可。
1 2 3 4 5
# The current server SQL mode, which can be set dynamically. # Modes affect the SQL syntax MySQL supports and the data validation checks it performs. This # makes it easier to use MySQL in different environments andto use MySQL together with other # database servers. sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"