doc:appunti:linux:sa:mysql
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| doc:appunti:linux:sa:mysql [2026/09/09 15:25] – [Debug query MySQL] niccolo | doc:appunti:linux:sa:mysql [2026/09/09 15:29] (current) – [Debug query MySQL] niccolo | ||
|---|---|---|---|
| Line 474: | Line 474: | ||
| Il campo **STATE** e **INFO** sono stati troncati a 30 caratteri per leggibilità, | Il campo **STATE** e **INFO** sono stati troncati a 30 caratteri per leggibilità, | ||
| + | |||
| + | Un' | ||
| + | |||
| + | <code sql> | ||
| + | SELECT USER, | ||
| + | FROM information_schema.PROCESSLIST | ||
| + | WHERE COMMAND <> ' | ||
| + | GROUP BY USER,HOST | ||
| + | ORDER BY queries DESC; | ||
| + | </ | ||
| + | |||
| + | che restituisce qualcosa del tipo: | ||
| + | |||
| + | < | ||
| + | +-----------------+---------------------+---------+ | ||
| + | | USER | HOST | queries | | ||
| + | +-----------------+---------------------+---------+ | ||
| + | | asterisk | ||
| + | | system user | ||
| + | | system user | connecting host | ||
| + | | event_scheduler | localhost | ||
| + | | root | localhost | ||
| + | | replication | ||
| + | | replication | ||
| + | +-----------------+---------------------+---------+ | ||
| + | </ | ||
doc/appunti/linux/sa/mysql.txt · Last modified: by niccolo
