当前位置:网站首页>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 .
边栏推荐
- MySQL log module of InnoDB engine
- Pytoch counts the number of the same elements in the tensor
- JDBC exercise - query data encapsulated into object return & simple login demo
- C language structure is initialized as a function parameter
- MySQL stored procedure
- ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
- Redis highly available sentinel mechanism
- 什么是数字化存在?数字化转型要先从数字化存在开始
- Introduction to relational model theory
- GPS数据格式转换[通俗易懂]
猜你喜欢

Redis clean cache

强化学习-学习笔记3 | 策略学习

Matlab superpixels function (2D super pixel over segmentation of image)

Matlab imoverlay function (burn binary mask into two-dimensional image)

Learn memory management of JVM 01 - first memory

Hexadecimal conversion summary

Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification

Seven ways to achieve vertical centering

Knowledge representation (KR)

Select drop-down box realizes three-level linkage of provinces and cities in China
随机推荐
Distributed solution - Comprehensive decryption of distributed task scheduling platform - xxljob scheduling center cluster
Seven ways to achieve vertical centering
Solve the problem of cache and database double write data consistency
GPS data format conversion [easy to understand]
Knowledge representation (KR)
Take you two minutes to quickly master the route and navigation of flutter
ZABBIX monitors mongodb (template and deployment operations)
信息服务器怎么恢复,服务器数据恢复怎么弄[通俗易懂]
UNIX socket advanced learning diary - advanced i/o functions
MySQL transaction
JDBC exercise - query data encapsulated into object return & simple login demo
MySQL stored procedure
Redis clean cache
Implementing Yang Hui triangle with cyclic queue C language
Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
Acid transaction theory
Master-slave mode of redis cluster
II. Data type
Get all stock data of big a
Clear neo4j database data