当前位置:网站首页>which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_ mod
which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_ mod
2022-06-11 17:28:00 【Young ~ years】
edit
vim /etc/my.cnf
Add... At the bottom of the file :
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
restart :systemctl restart mysqld It didn't work ,
Check the cause of the error
cat /var/log/mysqld.log
/usr/sbin/mysqld: Error while setting value 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' to 'sql_mode'.

reason :8.0 The above has been cancelled NO_AUTO_CREATE_USER This keyword , stay mysql.ini Medium sql_mode Delete this keyword from the .
Final configuration
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

边栏推荐
- TypeScript学习笔记(二)
- Vscode configures eslint to automatically format with an error "the setting is deprecated. use editor.codeactionsonsave instead with a source“
- Pychart tips - how to set up a background picture
- Format eslint automatique lorsque vscode enregistre le Code
- Recyclerview cache reuse analysis, source code interpretation
- 05_特征工程—降维
- LeetCode-859. Intimate string
- Axi protocol Basics
- Bentley 使用 Authing 快速实现应用系统与身份的集成
- How to simplify a lot of if... Elif... Else code?
猜你喜欢

Katalon Studio Enterprise

Authoring share | understanding saml2 protocol

Qlineedit set input mask
![[pytest learning] after the pytest case fails to execute, the others will not be executed](/img/c7/52ae88cde65bdd12ae8b86df5c477f.png)
[pytest learning] after the pytest case fails to execute, the others will not be executed

从制造到“智造”,探索制造企业破局之道

04_特征工程—特征选择

05_ Feature Engineering - dimension reduction

TypeScript学习笔记(二)

如何成为一个乐观派组织?

Learning C language from scratch day 039
随机推荐
活动 | Authing 首次渠道合作活动圆满落幕
用实际案例分析PMP与ACP应该考哪个?哪个更有用?
Authing biweekly news: authing forum launched (4.25-5.8)
说说集合的面试题
6-3 读文章(*)
DFS and BFS notes (I) breadth first search based on C language
6-8 有结构文件的读写1
[Clickhouse column] create a new library, user and role
C语言:使用.h和.c文件遇到的问题总结
mysql 大表的拆分方式
Authing 双周动态:应用市场上线(5 .10 —5 .22 )
What is the minimum change price of PTA futures? How can PTA futures be safe?
6-7 文件读写操作
信息安全数学基础 Chapter 3——有限域(一)
Error: error summary of pointer as function parameter
From manufacturing to "intelligent manufacturing", explore the way for manufacturing enterprises to break the situation
Semaphore PV operation of process interaction and its code implementation
Learning C language from scratch day 039
Typescipt Basics
Export data prompt -- solution to the problem of secure file priv option