about mysql >= 5.6.15-63.0.4 http://git.pld-linux.org/?p=packages/mysql.git;a=commitdiff;h=96b6cbc20ef2688e890a57a0c458f6b9a398c033 if you wish to restore spaces in history instead of \040, run this line oneliner: sed -i -e 's#\\040# #g' ~/.mysql_history -- glen