Docs/数据库/postgresql/创建用户.txt
2022-10-18 16:59:37 +08:00

11 lines
No EOL
659 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

创建quartztstopr用户并赋权限
1、创建用户create role 与create user 区别只有create user默认加上login而create role不加
postgres=# create user quartztstopr with password 'Quartztstopr@2018';
2、切换到quartztst数据库
postgres=# \c quartztst
3、为用户赋增删改查权限
quartztst=# grant select,update,delete,insert on all tables in schema public to quartztstopr; # 查询,删除,更新,插入
quartztst=# grant all privileges on all tables in schema public to quartztstopr; # 所有权限
4、为用户赋修改表字段权限
quartztst=# grant all privileges on all tables in schema public to quartztstopr;