I am using the msyql-client, and I open a mysql prompt on a terminal via:
$ mysql -h localhost -uuser -ppassword mysql>
I use the msql client version:
Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using EditLine wrapper
For terminals with emacs-like bindings, I have a very strong muscle memory to use
Ctrl + W
to delete the last word. Yet inside the mysql client, it deletes back to the start of the line and hence it's hard for me to write or adapt queries.
Can I rebind the keyboard shortcuts for mysql client and, if so, how? I know that I can use Alt + Backspace instead, yet I want to keep my usage consistent.