postgresql - 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 更改为受信任。
有什么建议么?
解决方案
按照这个视频解决了这个问题https://www.youtube.com/watch?v=jhG2L4OWRY8
我设置了 postgres 密码并使用正确的密码添加了一个新的 localhost 服务器。
推荐阅读
- node.js - 如何在类验证器和类转换器中验证和转换数字数组或数字数组
- javascript - 无法使用 Javascript 比较两个 ISO 格式日期
- r - 用于数据可视化的 PCA 与 t-SNE:有没有办法用 t-SNE 加载图?
- c - 如何使用本机 qsort 在 C 中对“int **”数组进行排序
- java - 使用动态编程在java中拆分字符串
- python - 旧媒体文件可见,但在 django 开发管理控制台上上传的新图像文件失败,找不到 404
- django - 无效的语法几乎尝试了一切
- r - 使用 forcats 和 purrr 总结字符向量列表
- python - 如何在python中将三列合并为一列
- sql-server - 如何获取在表的其他列中具有相同值的特定列值