当前位置:网站首页>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:14:00 【年少~年】
编辑
vim /etc/my.cnf
在文件底部加入:
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
重启:systemctl restart mysqld 结果不成功 ,
查看错误原因
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'.

原因:8.0以上已经取消了NO_AUTO_CREATE_USER这个关键字,在mysql.ini中的sql_mode中删掉这个关键字即可。
最终配置
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

边栏推荐
- JPA failed to save multiple entities circularly
- 用实际案例分析PMP与ACP应该考哪个?哪个更有用?
- error:指针作为函数参数错误总结
- LeetCode-384. 打乱数组
- Katalon Studio Enterprise
- Authoring share | understanding saml2 protocol
- Cocoapod only updates the specified library (does not update the index)
- Analysis report on competition pattern and future development strategy of China's corn industry 2022-2028 Edition
- 字符串转数值
- Bentley 使用 Authing 快速实现应用系统与身份的集成
猜你喜欢

Katalon Studio Enterprise

核密度估计(二维、三维)

QLineEdit 设置输入掩码

The use of histogram function in MATLAB

Authoring share | understanding saml2 protocol

Authing CEO 谢扬入选福布斯 2021 年 30 Under 30 亚洲榜单

Center detection of circular marking points for opencv camera calibration

Learning C language from scratch day 039

Kernel density estimation (2D, 3D)

Guide to Dama data management knowledge system: percentage of chapter scores
随机推荐
10 times faster than 5g. Are you ready for 10 Gigabit communication?
Analysis report on competition pattern and future development strategy of China's corn industry 2022-2028 Edition
Kernel density estimation (2D, 3D)
ASP.NET教育OA系统源码 教育行业OA系统源码带文档
Authoring share | understanding saml2 protocol
ShellBrowser . NET Crack
闭包的简单理解
搜狐全員遭詐騙,暴露哪些問題?
一套ThinkPHP微信小程序商城源码带后台管理
Authing 双周动态:应用市场上线(5 .10 —5 .22 )
Typescript learning notes (II)
Song of the sea in 5g Era
C language: use H and C. summary of problems encountered in documents
Vscode automatic eslint formatting when saving code
Bentley 使用 Authing 快速实现应用系统与身份的集成
LeetCode——42. Connected to rainwater (double pointer)
WYSIWYG markdown editor: typora
Research Report on operation mode and investment opportunities of China's aluminum industry 2022-2028
vscode配置eslint自动格式化报错“Auto Fix is enabled by default. Use the single string form“
Tornado environment construction and basic framework construction -- familiar Hello World