When I tried to see the history of mysql - I see this
cat ~/.mysql_history
I got this :
└── cat ~/.mysql_history
_HiStOrY_V2_
exit
GRANT\040ALL\040PRIVILEGES\040ON\040*\040.\040*\040TO\040'jada'@'localhost';
FLUSH\040PRIVILEGES;
select\040User,Host\040from\040mysql.user;
exit
select\040User,Host\040from\040mysql.user;
GRANT\040ALL\040PRIVILEGES\040ON\040*\040.\040*\040TO\040'jada'@'localhost';
FLUSH\040PRIVILEGES;
select\040User,Host\040from\040mysql.user;
exit
drop\040database\app;\040
show\040databases;\040
create\040database\app;\040
exit
show\040databases;\040
use\app;\040
select\040*\040from\040users;\040
exit
use\app;\040
select\040*\040from\040users;\040
exit
select\040User,Host\040from\040mysql.user;
GRANT\040ALL\040PRIVILEGES\040ON\040*\040.\040*\040TO\040'jada'@'localhost';
FLUSH\040PRIVILEGES;
select\040User,Host\040from\040mysql.user;
exit
select\040User,Host\040from\040mysql.user;
exit
select\040*\040from\040users;
show\040databases;\040
use\app\040;\040
select\040*\040from\040users;
DELETE\040FROM\040table_name\040WHERE\040condition;
DELETE\040FROM\040users\040WHERE\040id\040=\0402;
select\040*\040from\040users;
history
show\040history;
exit
I saw a bunch of \040
.
How do I see a clean history like a regular history in bash ?
I've tried on 5 VMs. Same result. All the time.
\040
is the space character. – Horodkotype cat
show? – Horodkomysql
are you running? – HorodkoServer version: 8.0.20-0ubuntu0.19.10.1
– Bermtype cat
returncat is hashed (/usr/bin/cat)
– Bermhash -r
(after reading what it will do) – Gigahertzhash
has not much to do with the client, only with how it behaves) – Gigahertz\040
is the octal escape sequence for "space". (This does not explain how to undo the seemingly unnecessary escaping. – Accompany