Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在执行这个命令-
mysql -u user1 -p password1 -e "show databases"
我希望成功运行 mysql “show databases” 命令。但事实并非如此。它再次要求输入密码,即使我输入了正确的密码。这就是我得到的-
Enter password:
即使我在命令中给出了密码,我如何才能摆脱它要求输入密码的提示?
-p 后面不要加空格
mysql -u user1 -ppassword1 -e "show databases"