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.

1

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 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy