Specific method: (Recommended tutorial: MySQL database learning tutorial) Check the table lock status # Check which tables are locked show OPEN TABLES where In_use > 0; View the SQL statement that caused the deadlock # Query the runtime information of the innodb engine show engine innodb status; Query process #Query all processes show processlist; Unlock (delete process) # Delete process kill id; View what is being locked # View the things being locked SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS View things waiting for locks # View transactions waiting for locks SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; Supplementary content MySQL lock status view command
This is the end of this article about how to query whether a MySQL table is locked. For more information about how to query whether a MySQL table is locked, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: How to install Solr 8.6.2 in Docker and configure the Chinese word segmenter
>>: Mysql join query syntax and examples
Preface This article mainly introduces how to sta...
Table of contents 1. fill() syntax 2. Use of fill...
MySQL supports nested transactions, but not many ...
Preface Different script execution methods will r...
1. INSERT INTO SELECT statement The statement for...
How to indicate the parent directory ../ represent...
1. The first method is to use the unhup command d...
Introduction to MySQL logical architecture Overvi...
Table of contents Multi-application deployment 1-...
IFNULL(expr1,expr2) If expr1 is not NULL, IFNULL(...
Table of contents 1. Function signature 2. Functi...
Table of contents Canvas related documents Effect...
Table of contents Class Component Functional Comp...
After installing Jenkins, the initial download of...
When I first came into contact with HTML, I alway...