当前位置:网站首页>View and terminate the executing thread in MySQL
View and terminate the executing thread in MySQL
2022-07-05 12:35:00 【just4you】
View the executing thread
stay MySQL Use commands in the terminal or client tools
SHOW PROCESSLIST;
# perhaps
SHOW FULL PROCESSLIST;
Using commands on the command line
mysqladmin processlist;
Show results
Id User Host db Command Time State Info
58651 root localhost:7285 edu Sleep 1468 \N
58652 root localhost:7287 stock Query 0 starting show full processlist
58653 root localhost:7286 stock Sleep 1468 \N
58654 root localhost:7290 \N Sleep 1470 \N
58656 root localhost:7293 \N Sleep 1469 \N
Parameter description
- Id: Thread ID , Use kill Command will be used
- User: Currently connected users
- Host: Which is the current connection from IP port
- db: Currently connected database
- Command: Connection status , Sleep :sleep, Inquire about :query, Connect :connect
- Time: Connection duration ( second )
- State: At present SQL The state of the statement
- Info: The use of SQL, When the statement is too long , It may not be displayed completely .
More specific SQL Statement state (State) Explain look here
Thread termination
stay MySQL Use commands in the terminal or client tools
thread_id namely Id identification .
KILL thread_id;
Using commands on the command line
mysqladmin kill thread_id;
The termination flag is checked at a specific interval , So it may take a moment to terminate a thread , Wait for the thread to release resources , The thread will really terminate .
边栏推荐
- Detailed steps for upgrading window mysql5.5 to 5.7.36
- GPON technical standard analysis I
- 想问问,如何选择券商?在线开户是很安全么?
- Seven polymorphisms
- 只是巧合?苹果 iOS16 的神秘技术竟然与中国企业 5 年前产品一致!
- MySQL function
- Read and understand the rendering mechanism and principle of flutter's three trees
- About cache exceptions: solutions for cache avalanche, breakdown, and penetration
- Learn the garbage collector of JVM -- a brief introduction to Shenandoah collector
- 强化学习-学习笔记3 | 策略学习
猜你喜欢

Pytorch two-layer loop to realize the segmentation of large pictures
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter

Interviewer: is acid fully guaranteed for redis transactions?

嵌入式软件架构设计-消息交互

Embedded software architecture design - message interaction

Pytoch implements tf Functions of the gather() function

About cache exceptions: solutions for cache avalanche, breakdown, and penetration

Preliminary exploration of basic knowledge of MySQL

NPM install reports an error

July Huaqing learning-1
随机推荐
POJ-2499 Binary Tree
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
Flume common commands and basic operations
MVVM framework part I lifecycle
NPM install reports an error
Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
Matlab label2idx function (convert the label matrix into a cell array with linear index)
Redis's memory elimination mechanism, read this article is enough.
Handwriting blocking queue: condition + lock
Design of music box based on assembly language
Reinforcement learning - learning notes 3 | strategic learning
[HDU 2096] 小明A+B
Matlab superpixels function (2D super pixel over segmentation of image)
MySQL trigger
Cypher syntax of neo4j graph database
[superhard core] is the core technology of redis
Instance + source code = see through 128 traps
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
Master-slave mode of redis cluster