Hello I'm trying to use postgresql, on my digital ocean provided server.
I did $ sudo apt-get install postgresql
then $ sudo su postgres
then $ createuser -P djangousr
but then now I get an error:
createuser: could not connect to database postgres: 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"?
I googled around but just couldn't find a solution. any help would be appreciated
sudo service postgresql start
help? – Alex Morozovdpkg-reconfigure postgresql
, your configuration seems to be broken somehow . – Alex Morozov