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
Table of contents Preface Global Lock Table lock ...
Table of contents js calling method Android 1.js ...
background The popularity of Docker is closely re...
There are two common loading icons on the web, on...
Table of contents Preface Summary of the principl...
Table of contents Background 1. Thought Analysis ...
The MySQL built-in date function TIMESTAMPDIFF ca...
This article example shares the specific code of ...
1: readonly is to lock this control so that it can...
Open any web page: for example, http://www.baidu....
Table of contents Overview Code Implementation Su...
Table of contents environment summary Module Func...
In Linux, we usually use the mv command to rename...
This article shares the specific code of js to ac...
Table of contents Preface 1. Routing lazy loading...