text 如何允许远程连接到本地开发PostgreSQL服务器?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 如何允许远程连接到本地开发PostgreSQL服务器?相关的知识,希望对你有一定的参考价值。

How to allow remote connections to your local development PostgreSQL server?
Find the pg_hba.conf file for your local development PostgreSQL server instance.
If you know the PostgreSQL base directory then typically this conf file will be in (base)/PostgreSQL/9,0/data/pg_hba.conf

If you don't know the base directory, then use Windows File Search, or with Cygwin try find . -type f | grep pg_hba.conf

Add the following line at the bottom of your pg_hba.conf file

host all all xxx.xxx.xxx.x/24 trust

以上是关于text 如何允许远程连接到本地开发PostgreSQL服务器?的主要内容,如果未能解决你的问题,请参考以下文章