How do you clear an unexecuted MySQL query from the command line?
Type \c
.
When you start up MySQL, you'll likely see this message:
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
The "buffer" that it's referring to is the command/query buffer.
First type Ctrl+a, then Ctrl+k.