$ cd ~
$ cat .mysql_history

This is similar to .bash_history file that is logged for each user.
You can direct the history to another log file by using:

$ export MYSQL_HISTFILE=/home/webtest/dblog

Advertisements