Keywords: PostgreSQL - Linux - Technical issue - Other
I am working on django with postgresql, When i try to run command psql it gives below error:
$ sudo su postgres
psql: 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"?
How can i solve this issue? Previously it was working, I created one database also.
I also tried localhost='*' in config file.