今天在使用MySQL查询时报了一个“[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配置文件的[mysqld] 下添加:

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

然后在MySQL的bin目录下输入service mysqld restart重启MySQL即可。

[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated解决相关推荐

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

    mysql客户端查询报这个错误,如下所示: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and co ...

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

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

  3. MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains

    [mysql报错1055 报错解决办法][Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont ...

  4. [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause 的问题 MySQL

    show variables like "sql_mode"; set sql_mode=''; set sql_mode='NO_ENGINE_SUBSTITUTION,STRI ...

  5. sql [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause

    解决当时 错误 show variables like "sql_mode";set sql_mode='';set sql_mode='NO_ENGINE_SUBSTITUTIO ...

  6. mysql--navicat--运行SQL时提示出错信息-1055 - Expression #1 of ORDER BY clause is not in GROUP BYt

    出错提示 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggrega ...

  7. mysql Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nona

    1. 操作mysql的时候提示如下错误 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont ...

  8. 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contai

    文章目录 1. 现象 2. docker内部mysql容器 解决方案 3. windows和linux 解决方案 1. 现象 在使用sql语句创建表时,报错: 1055 - Expression #1 ...

  9. 执行sql语句提示[Err] 1055 - Expression #2 of SELECT list is not in GROUP BY......错误的解决办法

    当我在navicat中执行sql语句时,出现错误提示[Err] 1055 - Expression #2 of SELECT list is not in GROUP BY clause and co ...

最新文章

  1. 比尔盖茨NEJM发文:新冠肺炎是百年一遇的流行病!全世界应该如何应对?
  2. 一文告诉你,Intellij IDEA神器隐藏的11种实用小技巧!
  3. epoll的总结 LT和ET使用EPOLLONESHOT
  4. 【Java ORM】手写ORM框架:源代码、jar、生成JavaDoc文档
  5. 经典面试题(33):以下代码将输出的结果是什么?
  6. 以CCF CSP认证为抓手,积极探索软件基础能力递进式培养体系
  7. mysql查询一个月未登录_mysql函数实例-统计1周内未登陆的用户
  8. 汇编指令与机器码的相互转换(来自80x86汇编小站)
  9. 网络排查工具MTR介绍
  10. ear的英语怎么念_ear的三种发音各有哪些英文单词
  11. mac下webrtc的编译-坑记录 非常重要
  12. 5v继电器模块实物接线_5v继电器的工作原理
  13. 分期付款“名义利率”和“实际利率”的公式及其套路
  14. 3269: 万水千山粽是情
  15. 【机器学习基础】理解为什么机器可以学习1——PAC学习模型
  16. Windows10怎么设置双屏?双屏显示设置有哪些?
  17. Days14 ContentProvider ContentResolver
  18. 在64位总线下,安装了8G内存条,却显示可用内存不到8G的原因
  19. linux下的磁盘常用工具
  20. 漏洞复现----12、Apache Flink目录穿越漏洞(CVE-2020-17519 )

热门文章

  1. 【C++中单引号‘ ‘的意义及作用】
  2. python爬取自如数据
  3. i5 10400 几核_618装机推荐,6000预算搞定 i5-10400配2060s显卡配置主机
  4. 用AI算法起中文名字 ---- 传统起名字方法(2):传统经典起名方法罗列(2)
  5. vo类,model类,dto类的作用及划分
  6. QT QImage使用方法(Qt学习1)
  7. CC00050.hadoop——|HadoopMapReduce.V23|——|Hadoop.v23|MR算法扩展|MergeSort归并排序|
  8. golang中出于性能考虑的那些实用代码片段 |字符串篇
  9. 数据处理--python
  10. c语言入门-内存管理函数