首页 > 解决方案 > Postgres 服务器在 pgadmin 中不可见

问题描述

我有一个从数据库转储生成的新实例化的 postgres 服务器:

psql -U postgres postgres < dump.sql

验证安装

sudo pg_lsclusters
Ver Cluster Port Status Owner    Data directory              Log file
10  main    5432 online postgres /var/lib/postgresql/10/main /var/log/postgresql

/postgresql-10-main.log

现在我输入 pgadmin

pgadmin4

在终端中,没有可用的数据库。我正在使用 postgres 10(与转储服务器相同)和 ubuntu 16。我的 postgres 设置非常标准,但 postgres/pg_hba.conf 更改为受信任。

有什么建议么?

标签: postgresql

解决方案


按照这个视频解决了这个问题https://www.youtube.com/watch?v=jhG2L4OWRY8

我设置了 postgres 密码并使用正确的密码添加了一个新的 localhost 服务器。


推荐阅读