The MySQL manual says:
"mysql Logging
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.
Heritage
The history-file concept that MySQL and MariaDB are following is indeed "on Unix" and specifically is like the GNU History Library. There is a dependence on external libraries, Readline or …
[Read more]