当前位置:网站首页>MySQL 执行失败的sql是否会计入慢查询?
MySQL 执行失败的sql是否会计入慢查询?
2022-07-26 04:32:00 【锡】
请问执行失败的sql,比如执行一定时间后(达到慢查询阈值),丢失连接了,是否会记录慢查询日志?
其他答案1:
不会的,丢失连接这个就直接报错了
其他答案2:
我是这样做的试验的
表中有一行记录
执行
select *,sleep(10)from t
然后强制关掉workbench. 但慢查询中还是会出现引语句。
其他答案3:
我之前测试过,如果一个大的查询,比如要扫描100w行,中间扫描了10w行,被ctrl+c了,那么慢查询里会记录扫描了10w的时间。
其他答案4:
测试了下,SQL执行时长,只要超过slowlog的阈值(long_query_time),即使最终执行失败,也会记录。
边栏推荐
- 嵌入式实操----基于RT1170 FreeRTOS实现CPU使用率统计(二十四)
- 9、 File upload and download
- Makefile knowledge rearrangement (super detailed)
- 七、RESTful
- 使用百度飞桨EasyDL完成垃圾分类
- makefile知识再整理(超详细)
- Getting started with mongodb Basics
- UE4 多个角色控制权的切换
- Steam science education endows classroom teaching with creativity
- Chapter 3 how to use sourcetree to submit code
猜你喜欢

Spark Structured Streaming HelloWorld

Phaser(一):平台跳跃收集游戏

这种是我的vs没连上数据库吗

Wu Enda's machine learning after class exercises - linear regression

7、 Restful

Wu Enda's machine learning after class exercises - logical regression

egg-ts-sequelize-CLI

I.MX6U-系统移植-6-uboot图形化配置

P-norm (2-norm is Euclidean norm)

Getting started with mongodb Basics
随机推荐
1. If function of Excel
数据仓库
How does win11 change the power mode? Win11 method of changing power mode
How to make your language academic when writing a thesis? Just remember four sentences!
YAPI安装
2、 Internationally renowned project HelloWorld
egg-sequelize JS编写
Weights & Biases (二)
UE4 controls the rotation of objects by pressing keys
7、 Restful
Li Kou daily question - day 42 -661. Picture smoother
Page pull-up refresh and pull-down loading
生活相关——一个华科研究生导师的肺腑之言(主要适用于理工科)
三、@RequestMapping注解
机器学习之信用卡欺诈检测
UE4 键盘控制开关灯
RTSP/Onvif协议视频平台EasyNVR服务一键升级功能的使用教程
View and modify the number of database connections
A series of problems about the number of DP paths
Yuansaka Lin wallpaper