You are not logged in.
I have 2 MySQL database servers running on Arch Linux. The problem is that everything I do in MySQL is logged into a nice text file under my user account called ~/.mysql_history. This is a huge problem since all data and passwords are logged in plain text. While my home directory is only accessible by me, I still would like to disable the creation of this file. How can I do this?
./
Offline
It's quite quirky, but you can try :
> touch ~/.mysql_history
> chmod 000 ~/.mysql_history
That way, the mysql client won't be able to write to the file and it should remain empty. Note that it won't work as root as root can always write everywhere.
> ln -s /dev/null ~/.mysql_history
might work too, and send everything mysql says to oblivion ^^
Offline