[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated..

最近在mysql 8.0.15版本中发现一个问题,在执行完sql语句后报错:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘information_schema.PROFILING.SEQ’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

解决办法,亲测有效:

1.进入数据库:mysql -uroot -p
2.执行命令:set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES';

如果本文解决了各位小伙伴的问题,欢迎收藏关注!

[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated.._第1张图片

你可能感兴趣的:(mysql)