Bug #62878 MySQL client no longer supports deletes via delete key
Submitted: 22 Oct 2011 11:23 Modified: 23 Oct 2011 9:51
Reporter: Dimitriy A Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S2 (Serious)
Version:5.5.15 OS:Linux (SuSE 64-bit)
Assigned to: CPU Architecture:Any
Tags: client, delete, erase

[22 Oct 2011 11:23] Dimitriy A
Description:
In interactive mode, mysql client no longer supports deleting of typos via delete key, although backspace still works as expected.

How to repeat:
Open mysql client.
Type in some text.
Use the left arrow key to move back some characters.
Press the delete key.

Suggested fix:
Instead of showing "~" character when delete key is pressed, delete the character to the right of the cursor.
[22 Oct 2011 13:47] Valeriy Kravchuk
Please, send the output of:

mysql --version

I wonder if readline is used...
[22 Oct 2011 21:28] Dimitriy A
./mysql --version
./mysql  Ver 14.14 Distrib 5.5.13, for Linux (x86_64) using  EditLine wrapper

I just found out that this seems to be isolated to Percona's binaries.
[23 Oct 2011 9:51] Valeriy Kravchuk
This is not a proper place to discuss problems specific to Percona builds.

If EditLine is used you probably just need to define key bindings in file like .editrc in your home directory...