[英]Pgadmin ERROR: could not open file reading: Permission denied
I am a newbie for Psql, just wanted to copy the data into psql with codes:我是Psql的新手,只是想用代码将数据复制到psql中:
COPY consumer_complaints
FROM '/users/xxxx/Desktop/ConsumerComplaints.csv';
But, it wouldn't allow me to, as it showed following:但是,它不允许我这样做,如下所示:
ERROR: could not open file "/users/xxxx/Desktop/ConsumerComplaints.csv" for reading: Permission denied HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy. SQL state: 42501
I am so desperate at this point I don't know what to do.此刻我很绝望,我不知道该怎么办。
Here is a sample of the data.这是数据的示例。
This is the permission of the file: enter image description here这是文件的权限:在此处输入图片描述
update:更新:
03/22/2020: 1. I tried replay copy
with \\copy
, and it still didnt work. 2020年3月22日:1。我试着重播
copy
与\\copy
,它仍然没有工作。
You should try steps :您应该尝试以下步骤:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.