尝试从PGAdmin导入CSV文件时拒绝权限 [英] Permission denied when trying to import a CSV file from PGAdmin

查看:622
本文介绍了尝试从PGAdmin导入CSV文件时拒绝权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PGAdmin 1.14.3。

I'm using PGAdmin 1.14.3.

当我尝试执行导入命令时:

When I try to execute an import command:

COPY grad(country_code, postal_code, place_name, admin_name1, admin_code1, admin_name2, admin_code2, admin_name3, admin_code3, latitude, longitude, accuracy)
FROM 'C:\\Users\\denis\\Desktop\\BP2Project\\USA\\US.txt';

我得到一个


错误:无法打开文件
C:\Users\denis\Desktop\BP2Project\USA\US.txt用于阅读:
权限被拒绝SQL状态: 42501

ERROR: could not open file "C:\Users\denis\Desktop\BP2Project\USA\US.txt" for reading: Permission denied SQL state: 42501

我查了其他类似的问题,但没有一个解决我的问题。

I did look up other similar questions and none of them solved my issue.

我以用户postgres登录,谁是超级用户。我不明白为什么我缺少权限。我在Windows 7上。

I logged in as user "postgres" who is the superuser. I don't see why I'm missing permissions. I'm on Windows 7.

推荐答案

用户 Postgres

查看本文,了解如何在Windows上修改文件的安全访问。

Look at this article to see how to modify files' security access on Windows.

这篇关于尝试从PGAdmin导入CSV文件时拒绝权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆