N
N
Nikita Bunin2021-04-27 12:49:25
PostgreSQL
Nikita Bunin, 2021-04-27 12:49:25

Postgresql upload error on heroku?

I want to upload my postgresql database to Heroku, but I ran into one moment, which I can’t find the answer anywhere (I’m asking a question outside of Google for the first time).
When trying to load the database through the command line, a password request is displayed, but not for the database user, but for the windows user.
I found a command on Heroku that seems to be able to use a different user/password binding:
PGUSER=postgres PGPASSWORD=password heroku pg:push HEROKU_POSTGRESQL_MAGENTA mylocaldb --app
sushi to do this ... but by default it still uses the windows user (but no password is suitable)
6087ddf3a9746939480246.png

DBMS version 11 and after unsuccessful attempts tried to install 13, but nothing changed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2021-04-27
@Zarom

Execute (with real user and password, of course)

heroku config:set PGUSER=postgres PGPASSWORD=password

And then your command to download the dump

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question