1.配置快捷键:shell>vim .editrc
粘贴:
bind “^W” ed-delete-prev-word #删除前一个单词,Ctrl+W
bind “^U” vi-kill-line-prev #删除前一行,Ctrl+U
2.配置提示符prompt
\d The default database
\h The server host
\s Seconds of the current time
\U Your full user_name@host_name account name
\u Your user name
https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html