MySQL Err 1055 解决办法
MySQL 大约 611 字错误信息
[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
解决
去掉sql_mode
中的ONLY_FULL_GROUP_BY
。
查询 SQL 模式
查询全局SQL
模式:
SELECT @@global.sql_mode;
输出:
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
设置 SQL 模式
去掉sql_mode
中的ONLY_FULL_GROUP_BY
。
SET @@global.sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
阅读 498 · 发布于 2022-01-13
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Spring Boot 2.3.0 不再包含 Validation阅读 1422
-
Windows 子系统初始化报错:参考的对象类型不支持尝试的操作阅读 692
-
走进 Rust:流程控制阅读 1222
-
Android 获取应用信息阅读 2084
-
Git 命令之查看及设置用户名邮箱阅读 2438
-
Spring 组件的注册时机阅读 384
-
pgAdmin4 设置以本地客户端方式打开,不在浏览器中打开阅读 7323
-
Android ContentLoadingProgressBar 进度条控件阅读 6018
-
Java 并发编程之 Phaser阅读 1517
-
软考-系统架构设计师:网络存储技术 - Raid阅读 1211