PostgreSQL指定用户可访问的数据库pg_hba.conf

进入指定目录:

# cd /var/lib/pgsql/9.3/data/

使用vi编辑pg_hba.conf文件

# vi pg_hba.conf

以上配置为所有IP及网关都允许访问,使用MD5认证。

postgres用户可访问所有数据库

bret用户仅允许访问community、community2数据库

weather用户仅允许访问weather数据库

posted @ 2020-07-01 00:01  缘来不是你我  阅读(546)  评论(0)    收藏  举报