当前位置:网站首页>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 .
边栏推荐
- Redis highly available sentinel cluster
- Redis highly available slice cluster
- ZABBIX monitors mongodb (template and deployment operations)
- Pytoch uses torchnet Classerrormeter in meter
- 强化学习-学习笔记3 | 策略学习
- Swift - enables textview to be highly adaptive
- A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
- Learning JVM garbage collection 06 - memory set and card table (hotspot)
- Get the variable address of structure member in C language
- PXE启动配置及原理
猜你喜欢
Pytoch uses torchnet Classerrormeter in meter
Solve the problem of cache and database double write data consistency
ZABBIX ODBC database monitoring
Why learn harmonyos and how to get started quickly?
Take you hand in hand to develop a service monitoring component
Get data from the database when using JMeter for database assertion
Interviewer: is acid fully guaranteed for redis transactions?
Redis highly available slice cluster
MySQL storage engine
Read and understand the rendering mechanism and principle of flutter's three trees
随机推荐
Semantic segmentation experiment: UNET network /msrc2 dataset
图像超分实验:SRCNN/FSRCNN
Resnet+attention project complete code learning
PIP command reports an error pip is configured with locations that requires tls/ssl problems
Redis highly available slice cluster
Conversion du format de données GPS [facile à comprendre]
ZABBIX 5.0 - LNMP environment compilation and installation
Introduction to GNN
想问问,如何选择券商?在线开户是很安全么?
Matlab boundarymask function (find the boundary of the divided area)
语义分割实验:Unet网络/MSRC2数据集
Embedded software architecture design - message interaction
MySQL index - extended data
C alarm design
Why learn harmonyos and how to get started quickly?
ZABBIX agent2 installation
NPM install reports an error
强化学习-学习笔记3 | 策略学习
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
II. Data type