could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host "192.168.3.202" and accepting TCP/IP connections on port 5432?
各位大神,pgsql中遇到這個問題該怎么解決啊
uj5u.com熱心網友回復:
pgAdmin 是客戶端,客戶端若想連接服務端 需要在服務端進行相關配置:(1) 修改資料庫中檔案 pg_hba.conf 檔案, 將 客戶端機器IP添加進去,示例如下:
# TYPE DATABASE USER ADDRESS METHOD
host all all 192.168.13.51/32 trust
重啟資料庫生效
(2)pgAdmin 中port 即為 postgresql.conf 檔案中配置 port對應的值
(3)修改postgresql.conf 配置 listen_addresses='*'
重啟資料庫生效
(4)防火墻問題
uj5u.com熱心網友回復:
本機的話可以直接試試localhostuj5u.com熱心網友回復:
2樓說的對!!!!!!!!uj5u.com熱心網友回復:
1樓的步驟你可以試試或者用2樓的測驗下
uj5u.com熱心網友回復:
Modify the configuration file postgresql.conflisten_addresses = '*' # what IP address (es) to listen on;
# Comma-separated list of addresses;
# Defaults to 'localhost', '*' = all
# (Change requires restart)
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
password_encryption = on
uj5u.com熱心網友回復:
您好,你還在么,我想聯系您了解一下postgresqluj5u.com熱心網友回復:
先看埠在不在啊
在的話直接psql能進去么,遠程連是要改conf配置的
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/65357.html
標籤:PostgreSQL
上一篇:求幫忙,關于查詢每天出現的SQL
