Show MySQL client history

Like most people I like to execute MySQL queries direct from the MySQL commandline.

But if you want to review whatever you entered in the client it is sometimes difficult to find.

However: All commands entered are also saved in your homedir from the Linux user you are logged in from.

cat ~/.mysql_history

The result is a complete list of commands you have used:

show slave status\G
show master status;
show databases;
use testdb
INSERT INTO users(name) VALUES ('bla');