当前位置:网站首页>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
边栏推荐
猜你喜欢
A Preliminary Study on the Basic Principles of Formal Methods
(2022牛客多校五)C-Bit Transmission(思维)
深度学习网络模型的改进与调整
企业实训复现指导手册——基于华为ModelArts平台的OpenPose模型的训练和推理、基于关键点数据实现对攀爬和翻越护栏两种行为的识别、并完成在图片中只标注发生行为的人
实例032:反向输出II
敏捷、DevOps和嵌入式系统测试
MQ带来的一些问题、及解决方案
吃透Chisel语言.31.Chisel进阶之通信状态机(三)——Ready-Valid接口:定义、时序和Chisel中的实现
Splunk Filed extraction field interception
2022夏暑假每日一题(六)
随机推荐
Gradle系列——Gradle插件(基于Gradle文档7.5)day3-2
regular expression
LeetCode 283. 移动零(简单、数组)
MySQL-慢查询日志
查找最大的n个文件
【ROS基础】map、odom、base_link、laser 的理解 及其 tf 树的理解
第06章 索引的数据结构【2.索引及调优篇】【MySQL高级】
LeetCode 2312. 卖木头块
敏捷、DevOps和嵌入式系统测试
2022.07.31(LC_6132_使数组中所有元素都等于零)
2022.07.31(LC_6133_分组的最大数量)
【故障诊断分析】基于matlab FFT轴承故障诊断(包络谱)【含Matlab源码 2002期】
跨阻放大器
张驰课堂:六西格玛培训工具——箱线图
Ask a question, my Flinkcdc has run through, I can monitor the binlog of msql, and I can also send kafk
请教一下,Flink SQL ,JDBC sink 入 mysql 库,想要搞一个自增主键,要怎么写
图腾柱和推挽电路介绍
docker 安装mysql
OC-NSString
有趣的网站