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