permission problem since MySQL 5.6.37 update

trucmuche

Well-Known Member
Nov 20, 2014
92
4
58
cPanel Access Level
Root Administrator
Hello,

I was running MySQL 5.5 and I was able to export results of MySQL queries into a file using "INTO OUTFILE". Everything was fine.
Then I updated to MySQL 5.6 last days (for some reasons) and now, when I run the same queries, it gives me the error : "Can't create/write to file '/home/account/dir/dir2/filename.csv' (Errcode: 13 - Permission denied)".

I tried using "INTO OUTFILE 'filename.csv'" instead of "INTO OUTFILE '/home/account/dir/dir2/filename.csv'" and it worked ! But I can't understand the problem since dir2 has 777 permissions...

What's the problem now ?? Why MySQL is unable to write this file ??

Thanks in advance for your help,

T.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Is there any update on this. I am encountering a similar problem.
The original poster's issue related to the permissions on the directory associated with the running script. It was set to 0750 instead of 0755. Updating the directory permissions to 0755 solved the issue.

Thank you.