Use First use Open an Query the transactions being executed: SELECT * FROM information_schema.INNODB_TRX According to the thread ID of this transaction ( From the above figure, we can see the corresponding You can use the mysql command: If the thread holding the lock is not killed during this period: the second update statement prompts that the waiting time for the lock has timed out You can also use the query mysql database: View locked transactions SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; View transactions waiting for locks SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS; Query the processes that exist in the MySQL database
select * from information_schema.`PROCESSLIST`(show processlist;) concept: To establish a session in MySQL, you do not connect to a specific database, but to establish a session with the instance (that is, when executing a query on Navicat, you can query multiple databases corresponding to the port, and the database name + data table name is sufficient for the query) Multiple An instance can create multiple databases, that is, a session can operate multiple databases on an instance. The jdbc protocol connects to the database: Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Summary of Docker common commands and tips
>>: WeChat Mini Program uses simultaneous interpretation to implement speech recognition
Introduction: AD is the abbreviation of Active Di...
To get straight to the point, there is a very com...
Database version: mysql> select version(); +--...
1. The vertical-align property achieves the follo...
Technical Background This application uses the vu...
<br />When discussing with my friends, I men...
This article uses examples to illustrate the impl...
Table of contents 1. mixin.scss 2. Single file us...
Problem description: Recently, there is a demand ...
Detailed explanation of the role of static variab...
Table of contents Preface 1. The effect is as sho...
1. Two types of DMA mapping 1.1. Consistent DMA m...
Two methods to implement Mysql remote connection ...
1 MySQL autocommit settings MySQL automatically c...
1. Install the built-in Linux subsystem of win10 ...