简体   繁体   中英

ERROR 1045 (28000): Access denied for user 'usr'@'%' (using password: YES)

I get above error message when try to use:

SELECT * FROM mytable INTO OUTFILE /tmp/test.txt CHARACTER SET latin1 FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n';

A simple select query work fine:

mysql> select count(*) from mytable;
+----------+
| count(*) |
+----------+
|  1241551 |
+----------+
1 row in set (0.21 sec)

mysql>

It signifies you don't have FILE privileges for this user. Please check.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM