当前位置:网站首页>MySQL error 1055 solution: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
MySQL error 1055 solution: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains
2022-08-02 07:51:00 【web18224617243】
【mysql报错1055 报错解决办法】[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
Time: Monday, December 20, 2021 14:44:04
As the winter vacation is approaching, the examinations of various subjects are coming one after another. The subject of the author's examination today is MySQL. I have obtained the document prepared by the teacher and copied and pasted it in Navicat. After execution, an error is suddenly reported: Record the solution:
br>
Error code displayed:
[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
This is the first time I encountered such an error, so I copied the error message and opened Baidu. It seems to be due to the MySQL version problem. I opened Xiaopi and found that I was using MySQL 8 version:
They said that if it is MySQL 5 version, there will be no such problem, of course I don't want to switch to MySQL 5, so I didn't try,
There is a temporary solution on the Internet, so I won't say it here,We directly modify the configuration file and modify it permanently:
Next, we will solve the problem of MySQL 8 version:
Find your own MySQL installation directory. Note that it is not the Navicat installation directory, but MySQL.If you installed a tool like phpstudy or phpstudy_pro like me, you can open the small skin, click Settings, click Configuration File, click mysql.ini, and then click MySQL8.0.12: 
Then it will open a mysql configuration file mysql.ini, add this at the end of the configuration fileSnippet:
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
Note: Do not add in [mysql] and [client] below, to be added below [mysqld], don't ask me how I know!!!
Then, save the configuration file and close it, open Pi, and restart MySQL: 
Re-execute our SQL statement, no error is reported, OK!
Ran Goose, unfortunately, when I solved this problem, the exam time was over, and no one told me that the exam time was only 20 minutes ahhhhhhh!!!!!!!!!!!!!!!!!!
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- 线程的创建方式
- MySQL-Multiversion Concurrency Control
- 请教一下,Flink SQL ,JDBC sink 入 mysql 库,想要搞一个自增主键,要怎么写
- 带手续费买卖股票的最大利益[找DP的状态定义到底缺什么?]
- 企业实训复现指导手册——基于华为ModelArts平台的OpenPose模型的训练和推理、基于关键点数据实现对攀爬和翻越护栏两种行为的识别、并完成在图片中只标注发生行为的人
- LeetCode SQL 197. 上升的温度
- Enterprise training and reproduction guidebook - training and reasoning of the OpenPose model based on Huawei ModelArts platform, realizing the recognition of two behaviors of climbing and climbing ov
- 如何设计静态资源缓存方案
- 问个问题,我的Flinkcdc已经跑通了,可以监听msql的binlog了,也能发送kafk
- Go 实现分布式锁
猜你喜欢
![MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains](/img/aa/ab58ec47bb96df803dbc6a8ff6dde3.png)
MySQL报错1055解决办法:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains

埋点开发流程

【故障诊断分析】基于matlab FFT轴承故障诊断【含Matlab源码 2001期】

Enterprise training and reproduction guidebook - training and reasoning of the OpenPose model based on Huawei ModelArts platform, realizing the recognition of two behaviors of climbing and climbing ov

Splunk Filed extraction 字段截取

FormData upload binary file, object, object array

FormData上传二进制文件、对象、对象数组

FaceBook社媒营销高效转化技巧分享

“蔚来杯“2022牛客暑期多校训练营5,签到题KBGHFCD

结构体大小计算--结构体内存对齐
随机推荐
自然语言处理 文本预处理(上)(分词、词性标注、命名实体识别等)
【机器学习】实验3布置:贝叶斯垃圾邮件识别
Facebook社媒营销的5大技巧,迅速提高独立站转化率!
【ROS基础】map、odom、base_link、laser 的理解 及其 tf 树的理解
实例029:反向输出
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
SimpleChannelInboundHandler使用总结
Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
倍福使用AdsRemote组件实现和C#的ADS通讯
_2_顺序表
LeetCode 283. Shifting Zeros (Simple, Array)
第06章 索引的数据结构【2.索引及调优篇】【MySQL高级】
【云原生】如何快速部署Kubernetes
Find the largest n files
LeetCode刷题(7)
查看僵尸进程
概率论与数理统计
LeetCode Algorithm 1374. 生成每种字符都是奇数个的字符串
(2022牛客多校五)B-Watches(二分)
【机器学习】实验1布置:基于决策树的英雄联盟游戏胜负预测