My question may really be, why can't MySQL write to /tmp. The server version is : Server version: 5.1.73 Source distribution
Here are the details: I have looked through some of the suggested posts that popped up when I wrote the title to this post. I have also looked at this post and Snow Crashe's answer. I've looked again at one of my own posts and then searched the MySQL documentation hoping to find an option like INTO LOCAL OUTFILE
, but such an option appears not to exist.
When I issue the following sql query, I get an access denied error.
SELECT *
INTO OUTFILE '/tmp/feb_gic.txt'
FROM gic_employees
WHERE bill_month='201502';
My user has all privileges to a MySQL database given through grant
.
So, after reading all this, why can't MySQL write to /tmp? MySQL cannot write to /tmp even if my user is logged into mysql, let alone if mysql -e
is used.