我正在使用 Navicat 连接到在我的 Heroku 应用程序上运行的 Postgres。我输入了正确的主机、端口、数据库名称、用户、密码,但出现以下连接错误:
我搜索了此错误的解决方案,并通过添加以下行修改了pg_hba.conf :
host all all 0.0.0.0/0 md5
我还取消了 postgres.conf 中以下几行的注释:
listen_address = '*'
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
我重新启动 Postgres,但 Navicat 仍然给我同样的错误。
我认为问题可能是 SSL 设置,所以我按照本手册操作:http: //www.navicat.com/manual/online_manual/en/navicat_datamodeler/win_manual/SSLCert.html
不过,我遇到了同样的错误。
谁能假设问题是什么?