Question

I can't delete the last character in a given line in the MySQL CLI, if I press "END", it will jump on the character and if I press "DEL", it will delete the char before that (like backspace).

Does anybody know a fix for that issue?

I use MySQL 5.1.31-1ubuntu2-log with normal shell access.

Thank you for assistance!

Was it helpful?

Solution

The problem appears different on Linux/Windows.

Our solution was to add this line to ~/.editrc

bind -e

to see how editrc works:

https://www.mirbsd.org/htman/i386/man5/editrc.htm

OTHER TIPS

Erm ... Use cursor keys?

I heard recently that Shift-Del or Shift-Backspace works on some systems (mainly Mac), perhaps it can be used as a workaround for Ubuntu too?

Update: Does the End + Del/BS work normally when you're not inside MySQL prompt?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top