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
MySQL 5.7.18 installation and problem summary. I ...
Occasionally you'll see characters such as ...
describe: When the Tabs component switches back a...
Table of contents 1. What is copy_{to,from}_user(...
Due to business needs, there are often rush purch...
Tutorial Series MySQL series: Basic concepts of M...
Table of contents Basic Types any type Arrays Tup...
The problem of resetting the password for Zabbix ...
The network configuration of Host Only+NAT mode u...
<br /> English original: http://desktoppub.a...
This article shares the specific code of JavaScri...
1. First, let's review the relevant knowledge...
Let's learn about different types of loops th...
Phrase elements such as <em></em> can ...
This article shares the specific code of js to im...