first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
11
数据库/postgresql/创建用户.txt
Normal file
11
数据库/postgresql/创建用户.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
创建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;
|
Loading…
Add table
Add a link
Reference in a new issue