wiki-js/sysadmin/Linux/PostgreSQL/create-user.md

16 lines
440 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Создание пользователя с правами на базы
description:
published: true
date: 2023-11-15T17:54:00.564Z
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;
```