docs: create sysadmin/Linux/PostgreSQL/create-user

main
Федоров Дмитрий 2023-11-15 17:54:02 +00:00 committed by Dmitriy Fedorov
parent 0d18d193f5
commit 6039b0eb13
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
---
title: Создание пользователя с правами на базы
description:
published: true
date: 2023-11-15T17:53:56.246Z
tags:
editor: markdown
dateCreated: 2023-11-15T17:53:56.246Z
---
```
CREATE USER schema_auth WITH PASSWORD postgres;
GRANT ALL PRIVILEGES ON DATABASE “mk_objects” to schema_auth;
GRANT ALL PRIVILEGES ON DATABASE “smvu2” to schema_auth;
ALTER ROLE schema_auth WITH Superuser;
```