Answer the question
In order to leave comments, you need to log in
How to import a Postresql database into an empty database?
Hello.
How to import a database?
I can log in using the su postgres -c psql command.
The list of databases contains the required empty database Empty_db I
created everything like this:
create database Empty_db; CREATE USER MyUser WITH password 'password'; GRANT All ON DATABASE Empty_db TO MyUser;
psql: FATAL: Peer authentication failed for user "MyUser"
Answer the question
In order to leave comments, you need to log in
Do the rest under postgres:
З.Ы. - I'm sorry, I didn't notice the grants. But the first paragraph does not lose its meaning from this :)
Peer authentication failed for user "MyUser"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question