Error Code 13 in Mysql on UNIX. Can anyone Help me?

我们两清 提交于 2019-12-23 07:02:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!