V
V
Vadim2019-12-14 20:14:34
linux
Vadim, 2019-12-14 20:14:34

How to create an admin for a PostgreSQL database using the command line?

I am writing a script that should add an administrator to the created database dbx_all with
less privileges than potgres user, but
tell me how to this database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lev Zabudkin, 2019-12-14
@zabudkin

are you root?
su - postgre
createuser --interactive --pwprompt
and fill
in There is no such thing as a superuser having access to databases to everyone, as in Mayskuel, in Postgree.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question