进入指定目录:
使用vi编辑pg_hba.conf文件
以上配置为所有IP及网关都允许访问,使用MD5认证。
postgres用户可访问所有数据库
bret用户仅允许访问community、community2数据库
weather用户仅允许访问weather数据库
转载于:https://www.cnblogs.com/bretgui/p/9431829.html