Re: Newbie's question: How can I connect to my postgresql-server?

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Newbie's question: How can I connect to my postgresql-server?
Date: 2009-09-24 18:57:55
Message-ID: 20090924185755.GF22438@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Fri, Sep 25, 2009 at 01:47:03AM +0700, Ricky Tompu Breaky wrote:
> I am still new in PostgreSQL. Usually I use MySQL on OpenSuSE.

Welcome over, PG is *normally* much better behaved than this and
generally gives very good error messages.

> postgres(at)sussy:/root> createuser -D -p ricky

I don't think you want to be passing "-p" here; it's saying to use
"ricky" as the port number, which fails (sounds like a bug if it doesn't
complain about this) giving a port number of zero, which is why you see
this:

> connections on Unix domain socket "/tmp/.s.PGSQL.0"?

the ".0" is normally something like ".5432".

Maybe you want "-P" to be asking for the password?

--
Sam http://samason.me.uk/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message arvindwill 2009-09-24 19:06:18 About logging
Previous Message Alvaro Herrera 2009-09-24 18:53:54 Re: pgadmin is changing pgpass.conf

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2009-09-24 19:23:05 Re: Join optimization for inheritance tables
Previous Message Ricky Tompu Breaky 2009-09-24 18:47:03 Newbie's question: How can I connect to my postgresql-server?