0
我能夠用同樣的證書MySQL錯誤1045(28000)位於第1行:拒絕訪問用戶 'ABC' @ 'slave4'(使用密碼:YES)
mysql --host="x.x.x.67" --user="abc" --password="xxyy" --database="dbname"
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 81480482
但是,當我遠程訪問服務器我嘗試遠程文件寫入其拋出Error
mysql --host="10.64.133.67" --user="abc" --password="xxyy" --database="dbname" -se "select * from dbname.param INTO OUTFILE '/tmp/abcd.txt' FIELDS TERMINATED BY '\n' LINES TERMINATED BY '\n';"
ERROR 1045 (28000) at line 1: Access denied for user 'abc'@'slave4' (using password: YES)
我能火選擇查詢沒有任何異常。我完全失去了爲什麼我會得到一個異常,而寫
INTO TERMINATED BY TERMINATED BY '\ n'
到tmp文件 '\ n' 行OUTFILE '/tmp/abcd.txt' 字段。謝謝。
文件權限爲我工作: -
GRANT FILE ON *.* TO 'abc'@'%';
FLUSH PRIVILEGES;