首页 > 数据库技术 > 详细

postgresql创建只读账号

时间:2017-11-02 18:02:28      阅读:241      评论:0      收藏:0      [点我收藏+]

postgresql创建只读账号:


# su - postgres

$ psql

# \c icinga2;

# create user aa with password ‘xxx‘;

# grant select on all tables in schema public to aa;  (对现有表生效)

# alter default privileges in schema public grant select on tables to icuser_ro; (对未来的新加表生效)

#\q

本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1978480

postgresql创建只读账号

原文:http://yangzhiming.blog.51cto.com/4849999/1978480

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!