How to get history of mysql commands

Posts regarding the MySQL database server
Post Reply
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

How to get history of mysql commands

Post 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?
chris
Site Admin
Posts: 194
Joined: Mon Jul 21, 2008 9:52 am

Re: How to get history of mysql commands

Post by chris »

You can find the history file in you home directory:

Code: Select all

less ~/.mysql_history
Post Reply