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
/****************** * Advanced character device d...
Recently I used vue to learn to develop mobile pr...
One of the most commonly used and discussed data ...
When setting display:flex, justify-content: space...
Table of contents Preface text 1. Global Registra...
Let me tell you about a recent case. A game log l...
A system administrator may manage multiple server...
Table of contents Data Brokers and Events Review ...
Table of contents TypeScript environment construc...
Three ways to use CSS in HTML: 1. Inline style: s...
1. Install mysql Run the following command to upd...
Preface NFS (Network File System) means network f...
Table of contents 1. Create objects by literal va...
Table of contents 1 Difference 1.1 Space Occupanc...
Table of contents 1. Interface definition 2. Attr...