问题
I'm Using MySQL Server on UNIX System,
when i'm execute the below query
SELECT * INTO '/home/krunal/backupData/myBackup1.txt' FROM tbl_Property;
it shows the error
ERROR 1 (HY000): Can't Create /Write to file >'/home/krunal/backupData/myBackup1.txt' (Errorcode : 13)
Can anyone tell me that how can i solve this error
**Note**
: I have all the permission on dir backupData , Read , Write , Execute
回答1:
You messed up with /home/krunal/backupData/ permissions. To fix:
chown root:root /home/krunal/backupData/
chmod 1777 /home/krunal/backupData/
/etc/init.d/mysqld restart
Source: permissions
来源:https://stackoverflow.com/questions/28936577/error-code-13-in-mysql-on-unix-can-anyone-help-me