Hi @ Saisantosh Sadnnah
To check which queries are running for too long in MySQL, you can use the SHOW PROCESSLIST; command. This command displays a list of currently running threads, including their execution time, state, and query details. If you want to see the full query text, use SHOW FULL PROCESSLIST; instead.
Additionally, you can query the INFORMATION_SCHEMA.PROCESSLIST table to get more detailed insights into running queries:
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE TIME > 30;
This will show queries that have been running for more than 30 seconds, helping you identify potential bottlenecks.
Please go through these similar threads that might help you:
https://stackoverflow.com/questions/3638689/how-to-see-full-query-from-show-processlist
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.