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',''));
阅读 1086 · 发布于 2022-01-13
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Linux xxx is not in the sudoers file.This incident will be reported阅读 2347
-
Java 语法糖 - 方法重写时的桥接方法阅读 757
-
Android 获取状态栏高度阅读 3225
-
Windows 下使用 Wireshark 抓取 HTTP2 加密数据包阅读 3711
-
SQL Server 修改计算机名后修改服务名阅读 1537
-
CSS 网页变灰效果阅读 1842
-
macOS Homebrew 报错 not in a git directory阅读 68
-
Spring Boot Starter Actuator 监控 Spring Boot 应用阅读 444
-
Vue $nextTick 解决 v-if 切换后操作 DOM 报错问题阅读 389
-
YAML 基础语法阅读 466