[英]MySQL Import Dump per Console
i try to import a sql dump via console to a database: 我尝试通过控制台将sql dump导入数据库:
mysql -u admin -p password -D targetdbname < /var/www/vhosts/domainname.de/httpdocs/sp.sql
Then i had to provide password,- but the password i input is not valid... Access denied for user admin@localhost (using password: Yes) 然后,我必须提供密码,-但是输入的密码无效...用户admin @ localhost的访问被拒绝(使用密码:是)
But 但
mysql -u admin -p password targetdbname mysql -u admin -p密码targetdbname
works, password correct. 可以,密码正确。
?? ??
You should just write -p
and don't specify a password at all, because it is not secure at all. 您应该只写
-p
并且根本不指定密码,因为它根本不安全。
Eg if you are on linux then users can just execute the command history
and et voilà... they see your password in cleartext. 例如,如果您使用的是Linux,则用户只需执行命令
history
,...他们会以明文形式显示您的密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.