C
C
cacoxo2017-05-19 21:02:29
linux
cacoxo, 2017-05-19 21:02:29

How to use PostgreSQL with Node?

In general, I do not need PostgreSQL, and I am not going to use it. But the problem is that I'm watching a video tutorial where Postgre is used as a database. As a result, I get an authentication error "password authentication failed for user \"qman\""
I installed sudo apt-get install postgresql
It automatically created a postgres user
. I imported the database sample, the import passed.
I see this when doing it sudo -u postgres psql contests
. But the Node does not pass authentication, because As far as I understand, it climbs there not as postgres, but as my usual qman user.
I don't want to drop everything and learn Postgre that I don't need just to take this fucking course. Please help me make this all work.
PS: I solved everything by creating a password and specifying this password in the config in the application in the Node. The joke is that the author of the video course did NOT have this in the config - he only had the name of the database. Why is a mystery. Thank you all for your patience, I barely broke into obscene expressions, I disliked something Postgre from the start.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-05-19
@cacoxo

Find another course

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question