If you get following error while executing a OUTFILE query
mysql> select field1,count(*) into outfile '/tmp/temp.csv' fields terminated by ',' optionally enclosed by '"' lines terminated by '\n' from table group by field1;
ERROR 1045 (28000): Access denied for user 'test'@'10.0.3.%' (using password: YES)
then the most probable cause reason is that the entry for the username used by you does not have the
Read Full Details @
mysql> select field1,count(*) into outfile '/tmp/temp.csv' fields terminated by ',' optionally enclosed by '"' lines terminated by '\n' from table group by field1;
ERROR 1045 (28000): Access denied for user 'test'@'10.0.3.%' (using password: YES)
then the most probable cause reason is that the entry for the username used by you does not have the
FILE
privilege enabled in the user
table.Read Full Details @