0
当我尝试通过命令行来连接到远程MySQL数据库这尽管警告正常工作:如何使用命令行中的密码运行MYSQL脚本?
/sdzf => mysql -h db3 -u auser -ppassword DB_6 -A
Warning: Using a password on the command line interface can be insecure.
但是,在运行一个脚本不起作用
/sdzf => mysql -h db3 -u auser -ppassword DB_6 -A< findrec.sql
Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000) at line 1: Access denied for user 'auser'@'50.206.86.74'
(using password: YES)
您忘记了-p和密码之间的空格。 – FMashiro
如果您以用户身份登录并尝试手动执行脚本,它是否有效? – 1615903