[英]How to fix jarsigner issue used in command line windows giving “SocketException: Permission denied: connect”
[英]How to fix“Permission denied” error when executing SQL command from a file in PostgreSQL (in Windows)?
我有一个包含数千个插入语句的 .sql 文件,我想运行所有这些语句。 在 Windows 上使用 Postgres 11 我尝试了\i E:\company.sql
其中E:\company.sql
是我的文件路径,但它给出了错误, Permission Denied
。
我读到这是因为我已经启动了 psql 并且我没有授予用户读取 SQL 文件的权限。 为了解决这个问题,我需要给它许可。 那么,您能解释一下我该如何解决这个问题吗?
这可能是语法错误。 尝试这个:
\i 'E:\company.sql'
(引号内)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.