You are not logged in.

#1 2010-08-20 21:32:19

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Disable .mysql_history Hidden Files

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

#2 2010-08-20 22:02:46

xvello
Member
Registered: 2010-05-15
Posts: 81
Website

Re: Disable .mysql_history Hidden Files

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

Board footer

Powered by FluxBB