ERROR 1045(28000):拒绝用户访问' usr' @'%' (使用密码:是)

时间:2015-07-15 07:55:16

标签: mysql

尝试使用时,我收到以上错误消息:

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

一个简单的选择查询工作正常:

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

mysql>

1 个答案:

答案 0 :(得分:1)

它表示您没有此用户的 FILE 权限。请检查。