SQL command to display history of queries

surya.in picture surya.in · Oct 19, 2011 · Viewed 272.1k times · Source

I would like to display my executed sql command history in my MYSQL Query Browser. What is the sql statement for displaying history?

Answer

Maysam Torabi picture Maysam Torabi · Jun 10, 2014

try

 cat ~/.mysql_history

this will show you all mysql commands ran on the system