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
1. Shut down the mysql service # service mysqld s...
Table of contents 1. Declare a function 2. Callin...
1. Install Docker yum -y install docker-io The &q...
MongoDB is cross-platform and can be installed on...
Table of contents Tomcat Introduction Tomcat depl...
1. dhtmlxTree dHTMLxTree is a feature-rich Tree M...
Linux system version: CentOS7.4 MySQL version: 5....
1. What is phantom reading? In a transaction, aft...
A data volume container is a container specifical...
This article shares the specific code for impleme...
During the Olympic Games, IE 8 Beta 2 will be rele...
Introduction This article records how to mount a ...
The equal height layout described in this article...
Let's take a look at the detailed method of b...
This article introduces the method of using CSS3 ...