postgresql 受权某个数据库的权限给test 帐号 使该帐号 只能操做指定DB 不能操做其余DB

alter user test set default_transaction_read_only=on; grant all on database crm_db to test; grant select on all tables in schema public to test;     // 起做用的是这句 要进入crm_db 操做,在那个db环境执行就授哪一个db的权 删除前撤销 re
相关文章
相关标签/搜索