1

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?

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

2 Answers 2

1

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

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .