错误描述:问题出现在本人在搭建项目开发环境的时候,新安装的mysql-2.7.29默认开启了 only_full_group_by 模式,导致group by相关语句报错。

解决方法:

在mysql的my.cnf配置文件中加入如下配置既可解决:

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

以下文章对此问题总结的挺好的,可参考https://www.cnblogs.com/kenshinobiy/p/9580701.html

【错误解决】SELECT list is not in GROUP BY clause and contains nonaggregated column相关推荐

  1. 解决SELECT list is not in GROUP BY clause and contains nonaggregated column ‘XXX’

    解决SELECT list is not in GROUP BY clause and contains nonaggregated column 'XXX' 我是在Linux上面新装了一个mysql ...

  2. 解决SELECT list is not in GROUP BY clause and contains nonaggregated column..

    问题描述 在一次zabbix的mysql库中写联合查询语句时报错 1055 - Expression #1 of SELECT list is not in GROUP BY clause and c ...

  3. mysql 报错解决思考Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    mysql报错: [Err] 1055 - Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggrega ...

  4. 报错,> 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    错误: mysql: select * ,count(*)as count from app_cash_trans_log group by app_cash_trans_log.tran_code ...

  5. mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column.

    mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column. 出现原因 使用g ...

  6. 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cre

    sql语句 SELECT * FROM t_company_change_log WHERE company_id='257949626441666560' AND rec_status='N' GR ...

  7. Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column

    场景 安装了mysql5.7,用group by 查询时抛出如下异常: Expression #1 of SELECT list is not in GROUP BY clause and conta ...

  8. Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.

    安装了mysql5.7,用group by 查询时抛出如下异常: Expression #3 of SELECT list is not in GROUP BY clause and contains ...

  9. MySQL Expression 2 of SELECT list is not in GROUP BY clause and contains nonaggregated column yous

    MySQL:Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'yous ...

  10. SELECT list is not in GROUP BY clause and contains nonaggregated column

    问题: SELECT list is not in GROUP BY clause and contains nonaggregated column 原因: 举个例子,有这么一个查询语句: SELE ...

最新文章

  1. Gartner公布五大新兴技术趋势 AI成主角
  2. 一元三次方程求解matlab_初中数学最全函数/方程【实际应用题】分类详解提升必学必练!...
  3. Linux Kernel TCP/IP Stack — L1 Layer
  4. Spring Boot中实现跨域的五种方式
  5. go设计模式之代理模式
  6. [Python人工智能] 三十四.Bert模型 (3)keras-bert库构建Bert模型实现微博情感分析
  7. 2015年四级计算机网络课程,2015年计算机四级网络工程师考试辅导:网络互连技术...
  8. 使用ASM 4处理Java类文件–第一部分:世界,您好!
  9. Elasticsearch 搜索不到数据问题(_mapping 设置)
  10. Web前端基础---JavaScript函数事件及其绑定DOM模型BOM模型
  11. android中include标签的使用
  12. IP多播技术[为软件高校杯做准备]
  13. 远程桌面连接的几种方法
  14. 【Python实例第3讲】管道:连接主成分和Logistic回归
  15. Python学习笔记(5)practice:shopping_cart
  16. Lost Found
  17. html——页面内跳转
  18. 走近棒球运动·休斯敦太空人队·MLB棒球创造营
  19. redis持久化数据到磁盘
  20. jenkins教程(jenkins教程入门到精通)

热门文章

  1. [UE4]传送门:场景切换
  2. 商城-下单-订单结算页
  3. 转转验机源码+后台管理
  4. 人脸检测技术即matlab的实现,人脸检测研究及MATLAB实现.doc
  5. Android Drawable 与 LayerList综合汇总
  6. python模拟ios_使用Xcode + Python进行IOS运动轨迹模拟!
  7. JS pos机- V0.2
  8. 关于Dell r720重装系统时遇到的识别不到磁盘的问题
  9. 没有功德的人就在眼前--我看到了“裸男”
  10. 微信开发者工具黑屏/打不开解决办法