Hi guys,
From MySQL document, any files created by INTO OUTFILE is writable by all users, but I only get the 660 permission when using above command:
-rw-rw---- 1 mysql mysql 140 Jul 21 14:05 test.out
Therefore, I got following error when loading file back:
The file ‘test.out’ must be in the database directory or be readable by all
The permission of directory contains output file:
drwxr-xr-x 2 mysql mysql 4096 Jul 21 14:08 mysqldata/
Even when I created it in database directory, I got the another error:
mysql> load data infile '/usr/local/infobright/outfile/test.out' into table xx;
ERROR 13 (HY000): Can't get stat of '/usr/local/infobright/outfile/test.out (Errcode: 2)
Only when executing chmod o+r, I can LOAD DATA INFILE successful.
Any help will be appreciated.
PS: LOAD DATA LOCAL INFILE works fine on my server itself.

