迁移到RDS或者腾讯云MYSQL实例发生sql_mode=only_full_group_by错误的解决

在本地测试正常,调整到RDS或者腾讯云数据库产品后,出现以下问题:

2021-11-27 01:02:12,239000[catalina-exec-2]ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions:142 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'ddd.this_.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with 

点击修改参数值,将里面的 ONLY_FULL_GROUP_BY √去掉就行了。

保存修改,这个修改不需要重启服务器即可生效。

原文地址:https://www.cnblogs.com/nanahome/p/15610499.html