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
This article shares the specific code of Javascri...
Result:Implementation Code html <div class=...
Scenario Suppose there are 10 requests, but the m...
This article example shares the specific code of ...
Table of contents Generate random numbers Generat...
The following functions are implemented: 1. Usern...
Table of contents definition grammar Examples 1. ...
This article uses examples to illustrate the synt...
Getting Started with JavaScript JavaScript is a l...
Table of contents Vue3 encapsulation message prom...
Table of contents 1. TypeScript is introduced int...
Introduction MySQL 5.7 aims to be the most secure...
This article shares the installation tutorial of ...
Application scenario: It is necessary to count th...
1. Link layout of the new site homepage 1. The loc...