当前位置:网站首页>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 .
边栏推荐
- Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
- Redis highly available sentinel cluster
- Implementing Yang Hui triangle with cyclic queue C language
- Matlab superpixels function (2D super pixel over segmentation of image)
- Distributed solution - Comprehensive decryption of distributed task scheduling platform - xxljob scheduling center cluster
- 什么是数字化存在?数字化转型要先从数字化存在开始
- Matlab struct function (structure array)
- Interviewer: is acid fully guaranteed for redis transactions?
- MySQL multi table operation
- One article tells the latest and complete learning materials of flutter
猜你喜欢

Get all stock data of big a

UNIX socket advanced learning diary - advanced i/o functions

什么是数字化存在?数字化转型要先从数字化存在开始

Resnet+attention project complete code learning

Master the new features of fluent 2.10

Understand redis persistence mechanism in one article

Third party payment interface design

Principle of universal gbase high availability synchronization tool in Nanjing University

Detailed steps for upgrading window mysql5.5 to 5.7.36

Flutter2 heavy release supports web and desktop applications
随机推荐
7月华清学习-1
Want to ask, how to choose a securities firm? Is it safe to open an account online?
MySQL function
Acid transaction theory
Learn the memory management of JVM 03 - Method area and meta space of JVM
July Huaqing learning-1
Swift - enables textview to be highly adaptive
Correct opening method of redis distributed lock
GPS數據格式轉換[通俗易懂]
Pytorch two-layer loop to realize the segmentation of large pictures
Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
Detailed structure and code of inception V3
强化学习-学习笔记3 | 策略学习
Deep discussion on the decoding of sent protocol
NPM install reports an error
Why learn harmonyos and how to get started quickly?
Solution to order timeout unpaid
Implementing Yang Hui triangle with cyclic queue C language
PXE startup configuration and principle