My .mysql_history looks like:
select\040country,\040count(*)\040from\040city_item\040inner\040join\040city\040group\040by\040year,\040country;
How to convert it into human readable format? Assuming it is too late to configure --without-readline
parameter or something else to my.cfg
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.
Use
sed "s/\\\040/ /g" < .mysql_history
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With