Answer the question
In order to leave comments, you need to log in
How to set up Postgresql?
Hello.
I'm trying to deploy a Django project on AWS.
I install Postgresql: sudo apt-get install postgresql postgresql-contrib
After that I do: sudo su - postgres
Then I try to create a database using: createdb mydb
I get:
createdb: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question