In previous versions of Ubuntu (and other Linuxes), I was able to jump word-by-word in the MySQL shell with Ctrl+←/Ctrl+→. This does not seem to work in 15.04. Instead I get ;5D (Ctrl+←) and ;5C (Ctrl+→) printed into the SQL query.

Using mysql-client-5.6.24-0ubuntu2 on Xubuntu 15.04 with all patches.

Is this a configuration problem or intentional behaviour?

  • It Works for bash? – Maythux May 22 '15 at 9:31
  • Yes, in bash it works fine. – lxg May 22 '15 at 9:32

Ok, this is apparently due to the fact that recent MySQL versions in Ubuntu aren't compiled against readline anymore, but editline instead.


It's a bug reported for all Ubuntu like distributions (probably happens to other distros too). Mysql is using editline lib instead of readline and that's breaking a lot of features we are used to, like ctrl + or ctrl + to move between words, ctrl + r to reverse search, or even writing unicode characters is not possible.

Even when he bug is flagged as high, please support the request to change back to readline by adding yourself to the affected users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.