Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get a full list of all queries currently running on my MySQL server? [duplicate]

Tags:

sql

mysql

I am using MySQL Administrator and MySQL Workbench to view my current threads and connections, and the query is shown within those apps, but it's just way too long and runs off the screen.

What is a simple way to see all queries no matter how long they are? Is there a simple SQL statement I can just run?

like image 746
Ethan Allen Avatar asked Sep 05 '25 11:09

Ethan Allen


1 Answers

Run the following command in order to see full query in the output:

mysql>SHOW FULL PROCESSLIST;

Look for more information here: How to see full query from SHOW PROCESSLIST

In order to see all queries you MUST have PROCESS privilege.

like image 74
Nikolai Avatar answered Sep 08 '25 02:09

Nikolai