Software Software
asked on
Mysql: Show all active transactions
I need a sql command which shows me all active transactions
mytop is a handy tool, packaged for every Linux Distro.
This tool instantly shows long running SQL statements.
Likely there are Windows ports also, if you run Windows.
This tool instantly shows long running SQL statements.
Likely there are Windows ports also, if you run Windows.
Hi,
You can also look at the threads by querying the INFORMATION_SCHEMA.PROCESS LIST table.
https://dev.mysql.com/doc/refman/8.0/en/performance-schema.html
https://dev.mysql.com/doc/refman/8.0/en/information-schema.html
Regards,
Tomas Helgi
You can also look at the threads by querying the INFORMATION_SCHEMA.PROCESS
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST
and if you have the performance_schema turned on you could use that to query and investigate performance problems.https://dev.mysql.com/doc/refman/8.0/en/performance-schema.html
https://dev.mysql.com/doc/refman/8.0/en/information-schema.html
Regards,
Tomas Helgi
Show processlist
Show full processlist
I used to handle queries timeout through comments stuck in the query anx a small daemon
Show full processlist
I used to handle queries timeout through comments stuck in the query anx a small daemon
Wouldn't the processlist show connections not just transactions?
Yes, you'd need a trivial filter.
Innodb also has tools that display transactions in the engine but these require some parsing. Innotop gives a decent view of such transactions
Innodb also has tools that display transactions in the engine but these require some parsing. Innotop gives a decent view of such transactions
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
https://dev.mysql.com/doc/refman/8.0/en/innodb-trx-table.html