設置pg數據庫外界可訪問

到PostgreSQL\9.1\data目錄下找到pg_hba.conf和postgresql.conf文件,在pg_hba.con文件末尾添加host   all      all      0.0.0.0/0      md5這一行。再到postgresql.conf,查找listen_addresses ,將其設置爲listen_addresses = '*' 。我的pg_hba.con文件
相關文章
相關標籤/搜索