Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'inform

蓝牙学习笔记之HCI协议(一) 目录 协议浅述 HCI简介 HCI协议数据格式 HCI Command Packet HCI ACL Data Packet HCI Synchronous(SCO) Data Packet HCI Event Packet HCI命令和事件介绍 Inquiry command Write Local Name Command Read BD_ADDR Command H... 阅读详情
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
解决方案:
查看 mysql 配置信息读取顺序。
①ps aux|grep mysql|grep 'my.cnf'
②mysql --help|grep 'my.cnf'
/etc/my.cnf, /etc/mysql/my.cnf, /usr/local/etc/my.cnf, ~/.my.cnf 这些就是mysql默认会搜寻my.cnf的目录,顺序排前的优先。mysql按照上面的顺序加载配置文件,后面的配置项会覆盖前面的。
如果没有该文件可以自定义一个文件。然后回默认读取配置中的内容) 

查看你需要修改的是哪个配置文件。我只有/etc/my.cnf 只修改这个文件即可

配置文件my.cnf通常会分成好几部分,如[client],[mysqld], [mysql]等等。MySQL程序通常是读取与它同名的分段部分,例如服务器mysqld通常读取[mysqld]分段下的相关配置项。如果配置项位置不正确,该配置是不会生效的

我们要修改的是mysqld下的 sql_mode 内容。如果没有自己创建一个
[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‘

去掉only_full_group_by
即可,这样可以保证即使重启依然是这个配置信息。





自注意力机制(SelfAttention Mechanism)原理与代码实战案例讲解 自注意力机制(Self-Attention Mechanism)原理与代码实战案例讲解 作者:禅与计算机程序设计艺术 / Zen and the Art of Computer Programming 1. 背景介绍 阅读详情

相关推荐

玄机-Linux权限维持-后门

玄机-Linux权限维持-后门

m0_46439803的博客 763

Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column...

报错内容 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'xxx.table.column' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 问题分析: 出现的问题是由

weixin_42121675的博客 1万+

QEMU pcie config空间访问机制

而pci_host_conf/data_le_ops的定义是在hw/pci/pci-host.c里,对于0xCF8端口的处理,因为是地址选通,所以只需要在write的时候记录、read的时候返回记录的值即可。而pci_host_config_write/read_common接口,在前256Bconfig空间的模拟中,也同样是会调用这个接口,所以后续的处理都是一样的。这是真实的硬件设计,而对于QEMU+KVM的虚机场景,显然是要基于硬件实现和虚拟化的需求设计虚机访问config空间的完整流程。

leiyanjie8995的博客 1949

解决“java.sql.SQLException: Expression #1 of ORDER BY clause is not in SELECT list,references column”

在一次跑项目的时候,报了这个错。分析原因:解决办法:1、将数据库换回5.6及以下版本2、将数据库中的 ONLY_FULL_GROUP_BY 模式去掉使用如下sql查询: 查询值: 发现有一个ONLY_FULL_GROUP_BY,将它去掉即可,使用如下sql: 很多资料说,这个解决办法重启数据库之后就失效了,目前为止,我重启很多次电脑了,并没有失效。3、在my.ini文件中加上对应配置重启可彻底解决就是在[mysqld]后面加上如下配置 但我不知道是不是缺了那个步骤,我加了这个配置之后重启数据库一直失败,重装

studio_1的博客 4915

基于R语言 meta/metafor 包进行荟萃分析(一)

在此部分中,使用连续结果详细描述了通用逆方差方法及其在meta分析中的应用,还介绍了固定效应法和随机效应法。我们已经展示了如何分别将典型数据与metacont和metagen函数一起使用,以及如何print和绘制森林图。我们还讨论了估计研究间方差的各种方法,并将Hartung-Knapp平差描述为经典随机效应方法的替代方法。此外,我们还说明了byvar选项的使用,这使得亚组分析更加简单。关于亚组分析的更多细节见后续章节。

Dunaichuanyi的博客 1万+

【FnOS飞牛云 | NAS存储】旧电脑不吃灰,手把手教你搭建完全属于自己的私人网盘

打造属于自己的NAS私人网盘,亲测有效,值得一试

木子Linux的博客世界 9412

MYSQL---Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column

--数据库中插入数据或执行sql语句时一直报下面这个错误: 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 c...

JacksonKing的专栏 1183

[QMT和ptrade量化交易小白入门]-120、卖出深度虚值期权的三重过滤策略

本专栏主要是介绍QMT和ptrade的基础用法,常见函数,写策略的方法,也会分享一些量化交易的思路,大概会写200篇左右。QMT的相关资料较少,在使用过程中不断的摸索,遇到了一些问题,记录下来和大家一起沟通,共同进步。

木头大左的博客 281

解决MySQL报错:1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘informat

解决MySQL报错:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'informat一、问题描述新安装的MySQL5.7.22 或 8.0.11,在 Navicat 上执行删除操作时,遇到报错:[Err] 1055 - Expre............

HaHa_Sir的博客 2万+

ESM2蛋白预训练模型 蛋白质、氨基酸向量表示

参考: https://github.com/facebookresearch/esm https://huggingface.co/facebook/esm2_t33_650M_UR50D https://esmatlas.com/resources?action=fold tokenizer_对输入蛋白会头尾添加cls、eos特殊字符,占两个字符长度 参考:https://github.com/facebookresearch/esm 直接clone下来代码

weixin_42357472的博客 1万+

节省人力成本40%!仓储物流AI机器人调度系统实战案例(含路径规划算法与系统架构图)

首先,我们需要定义一个Node类self.x = x # 节点x坐标self.y = y # 节点y坐标self.g = g # 从起点到当前节点的实际成本(g值)self.h = h # 从当前节点到终点的启发式成本(h值)self.f = g + h # 总成本(f值)self.parent = None # 父节点(用于回溯路径)self.task_id = task_id # 任务IDself.priority = priority # 任务优先级(1=最高,5=最低)

小程序开发 948

mysql5.7 group报错ERROR 1055 (42000): Expression #1

ubuntu16.04 apache2.4 php7.0 mysql5.7 $order_goods=db('order_goods')->where('orderid','in',$_orderid_arr)->group('orderid')->having('id>0')->select(); echo db('order_goods')->getL...

Marhal的博客 853

【100%通过率】华为OD机试真题 Java&Go 实现【查找单入口空闲区域】【2022.11 Q4 新题】

给定一个 m xn 的矩阵,由若干字符 和0构成,X表示该处已被占据,0"表示该处空闲,请找到最大的单入口空闲区域.解释:空闲区域是由连通的O组成的区域,位于边界的0可以构成入口,单入口空闲区域即有目只有一个位于边界的0作为入口的由连通的'O"组成的区域。 如果两个元素在水平或垂直方向相邻,则称它们是“连通”的。

MISAYAONE的博客 2万+

Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'inform...

最近使用新版本的mysql,执行语句的时候报错。网上找了一下,解决方法如下: vim /etc/mysql/conf.d/mysql.cnf [mysqld] sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE...

weixin_30421525的博客 101

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

mysql报错:ORDER BY clause is not in GROUP BY clause and contains nonaggregated column

在mysql5.7之后的版本运行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 de...

总结经验,与君共勉 1万+

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘

执行带group by的SQL语句出现如下错误:ERROR1055:Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'db.tb_list.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_g

weixin_45773788的博客 2733

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

mysql sql_mode小分享

mysql sql_mode参数小节 mysql,sql实例SELECT charges,mealstime,name,sd_meal.id,fixedcharges,balancecharges,payablecharges FROM sd_meal,lcmemdata,sd_conservation WHERE sd_meal.childuid=lcmemdata.childi

王鹏的专栏 947

MySQL操作报错:Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated colu

Mysql数据库操作报错:Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'informat。这个问题主要是由于sql_mode引起,所以先查看sql_mode 然后修改即可,主要是去除only_full_group_by。说明:此方法可以解决大部分mysql8出现的上述报错,配置之后若不生效或启动错误需删除以上配置并需求新的解决方案。

蛤? 2125

MySql错误:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggr

更新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; 本文章记录了该问题的解决过程。

fxjzzyo的博客 3467

mysql - windows下my.ini和linux下my.cnf简单配置

[mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] #设置3307端口 port = 3307 # 设置mysql的安装目录 basedir=G:\a_workIndex\mysql\mysql-5.7.24 # 设置mysql数据库的数据的存放目录 datadir=G:\a_workIndex\mysql\mysql-5...

qq_25598453的博客 4857

解决MySQL报错:1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'informat

一、问题描述 新安装的MySQL5.7.22 或 8.0.11,在 Navicat 上执行任一查询操作时,遇到报错: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘information_schema.PROFILING.SEQ’ ...

liu_shi_jun的专栏 7896

ORDER BY clause is not in GROUP BY clause

一、 报错:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'informat 问题描述 新安装的MySQL5.7.22 或 8.0.11,在 Navicat 上执行删除操作时,遇到报错: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP...

weixin_42210195的博客 1875

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

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

weixin_43520450的博客 4000

MySQL - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column

--数据库中插入数据或执行sql语句时一直报下面这个错误: 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.

1258

MySQL错误Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated colum

程序提示错误:Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 原因:数据库sq...

Janet_5的博客 2300
上一篇: Nginx下出现Access denied (403) see security.limit_extensions错误的解决方法
下一篇: 测试new 和call_user_function()和call_user_function_array()执行效率问题
o王o
博客等级 码龄13年 32粉丝 97原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值