PostgreSQL指定用户可访问的数据库pg

mac2022-06-30  117

进入指定目录:

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

使用vi编辑pg_hba.conf文件

# vi pg_hba.conf

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

postgres用户可访问所有数据库

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

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

转载于:https://www.cnblogs.com/bretgui/p/9431829.html

相关资源:垃圾分类数据集及代码
最新回复(0)