【问题标题】:PostgreSQL PG_Restore accepts connection string but still prompts for a passwordPostgreSQL PG_Restore 接受连接字符串但仍提示输入密码
【发布时间】:2016-04-26 21:36:33
【问题描述】:

运行以下命令时:

pg_restore.exe --dbname=postgresql://postgres:PASSWORD@localhost:5432 --create "FileName"

我遇到了 pg_restore 提示输入密码的问题。 PG_Restore 在一台机器上正常运行,但在其他机器上不能正常运行。这告诉我某处存在设置问题。 PGPass 在所有机器上都是空白的。

当带有正确密码的连接字符串被传递到可执行文件时,为什么 PG_Restore 会提示用户输入密码?

【问题讨论】:

    标签: postgresql connection-string pg-restore


    【解决方案1】:

    测试系统使用的是旧的次要版本的 postgres (9.4.0)。一旦我将它升级到 9.4.7(替换了每个文档的二进制文件),连接字符串就完全按预期工作了。

    编辑:我也在 9.4.6 上对此进行了测试,效果很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-09
      相关资源
      最近更新 更多