View Single Post

   
  #7 (permalink)  
Old 02-28-2008, 08:14 AM
Gordon Burditt
 
Posts: n/a
Default Re: Clear MySQL History - Remotely

>I was wondering if it's possible to Clear MySQL's History Remotely.

Whose MySQL history? Every user on every machine that uses the
'mysql' command-line client has their own history in their own
home directory on their own machine.

>Considering that you only have root access to the database but no
>access to the linux box.
>
>I found something in Goggle to do this, but you need to have access to
>the linux box:
>
>cat /dev/null > ~/.mysql_history


If you do not have access to the linux box, how did anything of
yours get INTO that file in the first place?

>How can you do this remotely with only root access to the database and
>not to the linux box?


You don't. But you can't put anything *IN* the file either, so what is
it you are trying to erase?

Reply With Quote