MySQL5.7:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
Posted @阿证1024
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL5.7:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains相关的知识,希望对你有一定的参考价值。
使用Navicat连接到mysql(5.7版)执行插入操作时报了一个错误,如下:
[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文件中加入以下内容:
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
重启MySQL服务即可。
以上是关于MySQL5.7:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains的主要内容,如果未能解决你的问题,请参考以下文章
MySQL5.7:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
MySQL5.7:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains