【发布时间】:2011-09-03 06:59:32
【问题描述】:
我有一个运行 postgres 的数据库服务器 (192.168.1.50)。我创建了一个名为“testdb”的数据库和一个密码为“testuserpw”的用户“testuser”。
在本地,我可以使用以下方式连接到数据库:
psql -d testdb -U testuser
当我从另一台主机(192.168.1.60)发出命令时:
psql -h 192.168.1.50 -d testdb -U testuser
我有错误:
psql: could not connect to server: Connection refused
Is the server running on host "192.168.1.50" and accepting
TCP/IP connections on port 5432?
有什么想法吗?
【问题讨论】:
标签: postgresql