Installation Problems

From: Estefania Vergara <estefania(dot)vergaracobos(at)gmail(dot)com>
To: pgsql-in-general(at)postgresql(dot)org
Subject: Installation Problems
Date: 2016-02-23 01:04:28
Message-ID: CANbDMBObPH3Ev2Kn=HLrjvHBpJubUyO8o77wFBgR+pq0=x3mhg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-in-general

up vote
down votefavorite
<http://stackoverflow.com/questions/35566525/permission-denied-when-connecting-to-server-postgres#>

Hi al,

I installed Postgres9.5.1 via Homebrew. However, I am having problems
creating a database by using "createdb". Originally the message said:
"createdb: command not found". Then I uninstall and install Homebrew and
updated Postgres.

However, now I am getting a new error:

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 "/tmp/.s.PGSQL.5432"?

I tried a couple of things such as:

$rm /usr/local/var/postgres/postmaster.pid

which gave back:

"Permission denied"

Also:

$postgres -D /usr/local/var/postgres
postgres cannot access the server configuration file
"/usr/local/var/postgres/postgresql.conf": Permission denied

Or:

$grep unix_socket /usr/local/var/postgres/postgresql.conf
grep: /usr/local/var/postgres/postgresql.conf: Permission denied

I don't know what to do, I don't really understand what is going on. Thanks.

Responses

Browse pgsql-in-general by date

  From Date Subject
Next Message John Purdie 2016-02-23 08:52:04 Re: Installation Problems
Previous Message Adrian Klaver 2016-01-30 20:40:25 Re: Cannot start the PostgreSQL service