当前位置:网站首页>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 .
边栏推荐
- Storage Basics
- Keras implements verification code identification
- July Huaqing learning-1
- MySQL installation, Windows version
- Correct opening method of redis distributed lock
- Matlab boundarymask function (find the boundary of the divided area)
- Implementing Yang Hui triangle with cyclic queue C language
- Select drop-down box realizes three-level linkage of provinces and cities in China
- II. Data type
- MySQL function
猜你喜欢
One article tells the latest and complete learning materials of flutter
Learn the memory management of JVM 02 - memory allocation of JVM
Matlab struct function (structure array)
Third party payment interface design
UNIX socket advanced learning diary -ipv4-ipv6 interoperability
Storage Basics
Knowledge representation (KR)
Get data from the database when using JMeter for database assertion
ZABBIX ODBC database monitoring
Yum only downloads the RPM package of the software to the specified directory without installing it
随机推荐
Want to ask, how to choose a securities firm? Is it safe to open an account online?
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
Flume common commands and basic operations
struct MySQL
Redis highly available sentinel mechanism
Third party payment interface design
Understand kotlin from the perspective of an architect
Database connection pool & jdbctemplate
Pytoch through datasets Imagefolder loads datasets directly from files
Design of music box based on assembly language
Pytoch implements tf Functions of the gather() function
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
ZABBIX monitors mongodb templates and configuration operations
JDBC -- extract JDBC tool classes
Learning JVM garbage collection 06 - memory set and card table (hotspot)
C alarm design
Keras implements verification code identification
Redis highly available sentinel cluster
Summary of C language learning problems (VS)
Tabbar configuration at the bottom of wechat applet