Page 1 of 1

How to get history of mysql commands

Posted: Fri Oct 28, 2016 4:21 pm
by mister_v
Hi,

I noticed how you can get the previous commands in MySQL,
by using the up arrow.

Is there a way to search in the commands?

Re: How to get history of mysql commands

Posted: Fri Oct 28, 2016 6:21 pm
by chris
You can find the history file in you home directory:

Code: Select all

less ~/.mysql_history