smint
smint

Reputation: 263

MySQL 5.1 command line problem: delete last char doesn't work

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!

Upvotes: 0

Views: 634

Answers (3)

Simon
Simon

Reputation: 36

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

Upvotes: 2

Abel
Abel

Reputation: 57159

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?

Upvotes: 0

ty812
ty812

Reputation: 3323

Erm ... Use cursor keys?

Upvotes: 0

Related Questions