您的位置:首页 > 数据库 > MySQL

[置顶] 【mysql 使用错误解决】this is incompatible with sql_mode=only_full_group_by

2017-05-31 11:33 796 查看
使用mysql的时候遇到的一些错误

1、Err1055,出现这个问题往往是在执行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


解决方法:

在 /etc/my.cnf (Linux) 文件里加上如下:

在 my.ini(window)文件加入

sql_mode='NO_ENGINE_SUBSTITUTION'


然后,重启Mysql服务就可以解决了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐