惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
博客园 - 叶小钗
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
小众软件
小众软件
T
Tailwind CSS Blog
Martin Fowler
Martin Fowler
B
Blog RSS Feed
月光博客
月光博客
量子位
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
Y
Y Combinator Blog
B
Blog
MyScale Blog
MyScale Blog

博客园 - Qiozi

Window server 2022 Datacenter, 布署 asp.net 3.5 后,自定义控件无法运行,错误提示:未知的服务器标记:”****” sql server 2019,安装多个实例 配置镜像, msoledbsql.msi 无法安装 CMD, 按日期备份mysql数据库, 并删除30天前的备份 WPS excel 操作,组件服务里找不到wps组件, 程序报:检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失败 tasklist, 查找进程,杀掉进程 redis-cli --cluster create 群集 查出当前数据库,所有数据表索引碎片情况。 windows 2012 R2 系统下, redis 主从配置 [EndOfStreamException: 尝试读取超出流末尾的内容。] .net MVC 中,使用 BundleConfig 合并js文件后,网站无法运行,发现代码丢失问题。 Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after Windows service 安装命令 sql server 查询CPU占用时间最大的语句。 Get http://IP:Port/v2/: dial tcp IP:Port: connect: connection refused 如何创建 Dockerfile? Windows 10 系统, 修改Docker容器系统时间区域, Docker 容器里连接远程 Sql Server 数据库。 SQL SERVER 2016数据库:删除用户时提示“数据库主体在该数据库中拥有架构” Docker 容器里,添加 Ping 功能。
mysql 5.7*, 报错:this is incompatible with DISTINCT
Qiozi · 2020-12-23 · via 博客园 - Qiozi

刚布署了的mysql查询报错:

this is incompatible with DISTINCT

解决方法:

在mysql 配置文件my.ini 或者my.cnf 里添加:

[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION