I want to save the result of the query's execution into txt.
I do this query:
SELECT * FROM `users` INTO OUTFILE '/home/b/myuser/domain.xyz/public_html/first.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'
But I have some error like: "Error in query (1045): Access denied for user 'myuser'@'localhost' (using password: YES)"
How I can bypass this error?
I should use these permissions(not write and not edit files), because hackers install various scripts on my site.
Please, help me.