当前位置:网站首页>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

边栏推荐
- Bentley uses authing to quickly integrate application system and identity
- 你还不懂线程池的设计及原理吗?掰开揉碎了教你设计线程池
- Authing biweekly news: online application market (5.10-5.22)
- What subclasses inherit, polymorphism, and upward transformation
- ASP. Net education OA system source code education industry OA system source code with document
- LeetCode-859. 亲密字符串
- Is it safe for Xiaobai to open an account directly on the flush?
- Typescript learning notes (II)
- ffmpeg硬编解码 Inter QSV
- 05_ Feature Engineering - dimension reduction
猜你喜欢

vscode保存代码时自动eslint格式化

Intranet penetration based on UDP port guessing

vscode配置eslint自动格式化报错“The setting is deprecated. Use editor.codeActionsOnSave instead with a source“

vscode保存代碼時自動eslint格式化

LeetCode——24. Exchange the nodes in the linked list in pairs (three pointers)

A journey of database full SQL analysis and audit system performance optimization

Read and understand the development plan for software and information technology service industry during the "14th five year plan"

论文阅读 dyngraph2vec: Capturing Network Dynamics using Dynamic Graph Representation Learning

Authing 双周动态:Authing 论坛上线(4.25-5.8)

Custom or subscription? What is the future development trend of China's SaaS industry?
随机推荐
你还不懂线程池的设计及原理吗?掰开揉碎了教你设计线程池
自动化测试-Selenium
Tornado environment construction and basic framework construction -- familiar Hello World
AXI协议基础知识
LeetCode-1005. K 次取反后最大化的数组和
我的CのERROR们
Create database instance
Solr (II) Solr adds core and dependent package path
Biden ordered to enforce the zero trust structure
MATLAB中histogram函数的使用
vscode保存代码时自动eslint格式化
Global and China Mobile Network Optimization (MnO) industry development panoramic survey and Investment Strategy Research Report 2022-2028
Is the second-class cost engineer worth the exam? What is the development prospect?
信息安全数学基础 Chapter 3——有限域(二)
What products are good for cross-border e-commerce? What are the top selling categories?
“is-a”,“has-a”,“like-a”
Talk about the interview questions of the collection
LeetCode——24. Exchange the nodes in the linked list in pairs (three pointers)
ffmpeg奇偶场帧Interlace progressive命令和代码处理
Splitting method of MySQL large tables