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
相關文章
相關標籤/搜索