1
1
123 1232014-10-23 17:08:46
PostgreSQL
123 123, 2014-10-23 17:08:46

How to properly configure PostgreSQL?

Good day to all. I must say right away that before that I worked with MySQL (MariaDB), now I decided to try PostgreSQL. Please tell me how to set it up correctly. After installation, the postgres user was automatically created in the system. Next, you need to log in under it and create a database. But then I don’t understand, in the instructions I’m offered to create a user from under postgres. I tried but I can't get in. Then I created a user, as it is done in mysql, right in the SQL shell, wrote GRANT to him, and then everything worked. And in the end, I still did not understand how to create or create a real Linux Account in the SQL shell. Maybe I'm missing something, point me in the right direction. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2014-10-23
@mistergalynsky

Postgres supports many authentication schemes . In any case, the user must be created in the database. But there is a peer mode in which the current OS user can connect to the database as the database user of the same name. Obviously, this only works for local connections and serves primarily for some administrative tasks. To connect applications to the database, it is better to use password authentication .
So the question is not in correctness, but in tasks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question