mysql 8.0.12 日常出错

最近不知道怎么回事,数据库老是会输出一个:

[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

 

网上找了一些方案,修改my.ini文件什么,都没什么用。

解决方案:select version(), @@sql_mode;SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); 

复制执行问题解决!

一个是查看数据库版本,一个是修改sql_mode环境。

posted @ 2018-08-30 22:04  Mr.Gang  阅读(606)  评论(0)    收藏  举报