The MySQL manual says:
On Unix, the mysql client logs statements executed interactively to a history file. By default, this file is named .mysql_history in your home directory. To specify a different file, set the value of the MYSQL_HISTFILE environment variable."
The trouble with that is: it doesn't tell you what you don't need to know. So I'll tell you.
The history-file concept that MySQL and MariaDB are following is indeed "on Unix" and specifically is like the …[Read more...]