1
|
sudo
-u postgres psql
|
ALTER USER postgres WITH PASSWORD
'postgres'
;
|
创建用户一:
create user ysr superuser password '123456';
创建用户二:
创建用户:createuserusernamewithloginpassword'password';
grantallonalltablesinschemaschemaNametouser;给用户某个schema的所有权限