When running a csv export query in MySQL I am getting an access denied error.
The query in question is:
SELECT id_no, name, address
FROM master
INTO OUTFILE '/Users/home/go_results.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
This results in:
Access denied for user 'user'@'%' (using password: YES)
The same user can run a range of other select, create and so on queries.
I am using AWS RDS so I do not have root access or I would run from there.