psql: fe_sendauth: 没有提供密码
psql: fe_sendauth: no password supplied
pgpass.conf
位于路径 %APPDATA%roaming/pgadmin/pgpass.conf
.
但它不断给出错误-
psql: fe_sendauth: no password supplied
可能很愚蠢,但还有一个问题是何时使用 pg_hba.conf 以及何时使用 pgpass.conf 文件?
在批处理脚本中使用密码字符串声明系统变量 $PGPASSWORD
而不是使用 pgpass.conf 文件。
文档 - https://www.postgresql.org/docs/current/static/libpq-envars.html
还发现 pgpass.conf
文件的问题需要将其放入 PostgreSQL 服务器而不是 pgAdmin(客户端的目录)。
pgpass.conf
位于路径 %APPDATA%roaming/pgadmin/pgpass.conf
.
但它不断给出错误-
psql: fe_sendauth: no password supplied
可能很愚蠢,但还有一个问题是何时使用 pg_hba.conf 以及何时使用 pgpass.conf 文件?
在批处理脚本中使用密码字符串声明系统变量 $PGPASSWORD
而不是使用 pgpass.conf 文件。
文档 - https://www.postgresql.org/docs/current/static/libpq-envars.html
还发现 pgpass.conf
文件的问题需要将其放入 PostgreSQL 服务器而不是 pgAdmin(客户端的目录)。