windows中PostgreSQL的文件权限ERROR: could not open file... for reading: Permission denied

编程入门 行业动态 更新时间:2024-10-15 12:30:05

windows中PostgreSQL的文件<a href=https://www.elefans.com/category/jswz/34/1771295.html style=权限ERROR: could not open file... for reading: Permission denied"/>

windows中PostgreSQL的文件权限ERROR: could not open file... for reading: Permission denied

问题描述:

在windows中,即使文件的【属性】中【安全】已有postgres用户相应的访问权限,但依然出现permission denied

具体:

  1. a_gp=# copy city from 'F:\programmingPractice\CSU_SQL\market\pipeCity.csv' with csv header delimiter ',';
  2. ERROR: could not open file "F:\programmingPractice\CSU_SQL\market\pipeCity.csv" for reading: Permission denied

解决方案:

添加【everyone】用户,这样就能读取文件

具体如下:

  1. a_gp=# copy city from 'F:\programmingPractice\CSU_SQL\market\pipeCity.csv' with csv header delimiter ',';
  2. ERROR: could not open file "F:\programmingPractice\CSU_SQL\market\pipeCity.csv" for reading: Permission denied
  3. a_gp=# copy city from 'F:\programmingPractice\CSU_SQL\market\pipeCity.csv' with csv header delimiter ',';
  4. COPY 361



更多推荐

windows中PostgreSQL的文件权限ERROR: could not open file... for reading: Permission den

本文发布于:2024-02-10 16:49:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1676291.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:权限   文件   ERROR   PostgreSQL   windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!