i use mysql on ubuntu.i find all last commands history on terminal by history command but it exclude mysql query or commands.is there any method or command like history to find last mysql queries history on ubuntu
2 Answers
Those commands go into ~/.mysql_history.
If you logged into mysql CLI with sudo, it might actually be at the following location:
/root/.mysql_history In any case, the following find command can help you:
sudo find / -name .mysql_history