mysql_processlist
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysql_processlist [2015/10/15 09:10] – luke7858 | mysql_processlist [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Investigating mysql ==== | ==== Investigating mysql ==== | ||
\\ | \\ | ||
+ | == Query List == | ||
+ | To view mysql query list run the following command from the command line: | ||
+ | <sxh bash> | ||
+ | SELECT * FROM information_schema.processlist WHERE command != ' | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | <sxh bash> | ||
+ | mysqladmin pr | grep Query | sort -nk12 | ||
+ | </ | ||
+ | Example output: | ||
+ | <sxh bash> | ||
+ | | 5950 | user1 | localhost | example_com | Query | 0 | checking query cache for query | SELECT m.filename, m.datedir, m.description, | ||
+ | | 5977 | root | localhost | | Query | 0 | | show processlist | ||
+ | | 5032 | user2 | localhost | new_shop | Query | 49 | Sending data | SELECT m.*, mm.is_winner, | ||
+ | </ | ||
+ | \\ | ||
+ | == All Processes == | ||
If you need to investigate mysql you can troubleshoot by investigating the processlist | If you need to investigate mysql you can troubleshoot by investigating the processlist | ||
<sxh> | <sxh> |
mysql_processlist.1444900217.txt.gz · Last modified: 2024/05/23 07:26 (external edit)