当前位置:网站首页>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 .
边栏推荐
- JDBC exercise - query data encapsulated into object return & simple login demo
- Design of music box based on assembly language
- 图像超分实验:SRCNN/FSRCNN
- GNN(pytorch-geometric)
- ZABBIX 5.0 - LNMP environment compilation and installation
- byte2String、string2Byte
- MySQL trigger
- II. Data type
- Average lookup length when hash table lookup fails
- Ecplise development environment configuration and simple web project construction
猜你喜欢
Get all stock data of big a
Matlab boundarymask function (find the boundary of the divided area)
Redis highly available sentinel mechanism
MySQL transaction
C language structure is initialized as a function parameter
MySQL storage engine
MySQL index - extended data
MySQL index (1)
MySQL splits strings for conditional queries
ZABBIX ODBC database monitoring
随机推荐
强化学习-学习笔记3 | 策略学习
POJ-2499 Binary Tree
Image hyperspectral experiment: srcnn/fsrcnn
ZABBIX monitors mongodb templates and configuration operations
Cypher syntax of neo4j graph database
NPM install reports an error
Resnet+attention project complete code learning
MySQL installation, Windows version
ZABBIX agent2 installation
JDBC -- extract JDBC tool classes
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
[figure neural network] GNN from entry to mastery
想问问,如何选择券商?在线开户是很安全么?
Redis highly available slice cluster
信息服务器怎么恢复,服务器数据恢复怎么弄[通俗易懂]
POJ-2499 Binary Tree
Experimental design - using stack to realize calculator
Conversion du format de données GPS [facile à comprendre]
Get the variable address of structure member in C language
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署