Unanswered: Connection to database failed: could not connect to server: No such file or directory
I am having a problem with postgresql database connectivity with C program.
I am using the libpq for connectivity. But whenever I execute my c program I am getting this error.
"Connection to database failed: 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 have tried and looked that no other service is using the port. Some one please help me..It is very very urent for me.