当无法输入EC2 MariaDB密码时的处理方法

当无法输入EC2 mariaDB的密码时,可以采取以下解决方法。

当访问EC2服务器并登录mariaDB时,遇到无法通过键盘输入在“Enter password”处输入设定的密码的解决方法。

进入EC2服务器并登录mariaDB时,若无法通过键盘输入在“Enter password”处输入设定的密码,有以下应对方法。

[ec2-user@ip- ~]$ mysql -u root -p
Enter password:

解决方案 ‘àn)

平常一样使用键盘输入,并点击Enter。
└ 虽然屏幕上没有显示,但实际上是可以输入的。

▼连接成功

[ec2-user@ip- ~]$ mysql -u root -p
Enter password:

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 26
Server version: 5.5.64-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

由于在本地环境中显示,我认为这是键盘输入异常,浪费了宝贵的时间。