pgadmin拒绝连接到本地主机

时间:2019-08-13 09:58:08

标签: postgresql

pgAdmin在端口5432上找不到在本地计算机上运行的postgres。 pg_isready -h localhost返回肯定结果(accepting connections)。

psql -h localhost -d django_db也允许访问数据库。

尝试通过pgAdmin访问它会返回

could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
could not connect to server:
Address not available
Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

0 个答案:

没有答案