当前位置:网站首页>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
边栏推荐
- 正则表达式的理解学习
- (2022牛客多校五)C-Bit Transmission(思维)
- 结构体大小计算--结构体内存对齐
- 59:第五章:开发admin管理服务:12:MongoDB的使用场景;(非核心数据,数据量比较大的非核心数据,人脸照片等隐私的小文件;)
- 封装class类一次性解决全屏问题
- 雷达人体存在感应器方案,智能物联网感知技术,实时感应人体存在
- 【论文精读】Geometric Structure Preserving Warp for Natural Image Stitching
- 海缆探测仪TSS350(二)
- 21 days learning challenge 】 【 sequential search
- 带手续费买卖股票的最大利益[找DP的状态定义到底缺什么?]
猜你喜欢
随机推荐
张驰咨询:企业实施精益管理的最大障碍,只把精益作为一种工具和方法
LeetCode 2312. Sell Wood Blocks
电商库存系统的防超卖和高并发扣减方案
雷达人体存在感应器方案,智能物联网感知技术,实时感应人体存在
Ask a question, my Flinkcdc has run through, I can monitor the binlog of msql, and I can also send kafk
OC-NSString
spark读取文件夹数据
Splunk Field Caculated Calculated Field
自然语言处理 文本预处理(下)(张量表示、文本数据分析、文本特征处理等)
JS初识高阶函数和函数柯里化
apt & apt-get命令
【论文精读】Geometric Structure Preserving Warp for Natural Image Stitching
LeetCode 2360. The longest cycle in a graph
倍福使用AdsRemote组件实现和C#的ADS通讯
OC-范畴
A Preliminary Study on the Basic Principles of Formal Methods
【机器学习】实验5布置:AAAI会议论文聚类分析
Link with Game Glitch
spark 读取本地文件
MySQL-索引优化和查询优化









