我不能在终端里写MySQL的密码。

huangapple go评论57阅读模式
英文:

I am not able to write password of mysql in twrminal

问题

我已经下载了 MySQL,现在打开终端运行,但它不接受密码。

图片中显示输入密码,但我无法输入,请给我解决方案

它不接受密码,但显示输入密码。

英文:

I have downloaded mysql now opened terminal to run but it is not taking password.

In the image it shows enter password but i am not able to write please give me solution

It is not taking password but it shows enter password

答案1

得分: 2

终端不显示密码在屏幕上,它是机密数据,只需输入密码然后按回车,它将起作用。所输入的密码将不可见。

英文:

terminals don't reflect passwords on screen and it confidential data just type the password and hit enter it will work..the password written will not be visible

答案2

得分: 0

在终端中输入密码时,您输入的字符不会显示出来。只需像平常一样输入密码,然后按Enter键。即使您看不到字符,它们也已经被输入了。

如果您无法输入:

尝试运行以下命令以检查权限:ls -la /usr/local/mysql/bin/mysql

对我来说,显示如下:

-r-x--x--x  1 root

如果您没有权限(应该会收到权限错误通知),尝试运行以下命令:chmod +x /usr/local/mysql/bin/mysql

然后再次尝试执行该命令。

还可以尝试直接在CLI中传递密码:

mysql -u root -p<password>

英文:

When entering passwords in the terminal, the characters you type won't be visible. Just type your password as you normally would and press Enter. Even though you don't see the characters, they are being entered.

if you are not able to type at all :

try to ls -la /usr/local/mysql/bin/mysql to check permissions.

for me it shows :

> -r-x--x--x 1 root

if you do not have permissions, (you should be noticed the permission error) try to chmod +x /usr/local/mysql/bin/mysql

then try again executing the command.

also try to pass the password directly in the CLI :

mysql -u root -p&lt;password&gt;

huangapple
  • 本文由 发表于 2023年5月17日 18:44:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76271234.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定