当前位置:网站首页>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 .
边栏推荐
- SENT协议译码的深入探讨
- Pytoch loads the initialization V3 pre training model and reports an error
- Video networkstate property
- One article tells the latest and complete learning materials of flutter
- Learn the memory management of JVM 02 - memory allocation of JVM
- Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
- GPS数据格式转换[通俗易懂]
- mysql拆分字符串做条件查询
- Understanding the architecture type of mobile CPU
- Leetcode-1. Sum of two numbers (Application of hash table)
猜你喜欢

ZABBIX ODBC database monitoring

Resnet+attention project complete code learning

Read and understand the rendering mechanism and principle of flutter's three trees

How can beginners learn flutter efficiently?

Understand kotlin from the perspective of an architect

Pytoch implements tf Functions of the gather() function

Learn memory management of JVM 01 - first memory

Keras implements verification code identification

Pytoch uses torchnet Classerrormeter in meter

What is digital existence? Digital transformation starts with digital existence
随机推荐
Learn the garbage collector of JVM -- a brief introduction to Shenandoah collector
ZABBIX agent2 monitors mongodb templates and configuration operations
MySQL trigger
Resnet18 actual battle Baoke dream spirit
MVVM framework part I lifecycle
Distributed solution - Comprehensive decryption of distributed task scheduling platform - xxljob scheduling center cluster
Detailed steps for upgrading window mysql5.5 to 5.7.36
GPS data format conversion [easy to understand]
Master-slave mode of redis cluster
Take you two minutes to quickly master the route and navigation of flutter
GNN(pytorch-geometric)
GPON other manufacturers' configuration process analysis
How can labels/legends be added for all chart types in chart. js (chartjs.org)?
Migrate data from Mysql to neo4j database
Programming skills for optimizing program performance
Basic operations of MySQL data table, addition, deletion and modification & DML
Understand kotlin from the perspective of an architect
图像超分实验:SRCNN/FSRCNN
Four operations and derivative operations of MATLAB polynomials
Keras implements verification code identification