ConnectDBStart() error
ConnectDBStart() error
От:
"Andrew Chan" <happyfish@cheerful.com>
Дата:
I'm using SuSE Linux 7.0 with PostgreSQL 7.0.3. I encounter the following error while adding a user
test:~# su postgres
test:/root ~# createuser
Shall the user be allowed to create databases?(y/n) : y
Shall the user be allowed to create more users? (y/n) : y
psql: ConnectDBStart() -- connect failed - Connection refused
Is the postmaster running at localhost?
and accepting connection on Unix sockets '5432'?
createuser: creation of user www failed
Pls advise.
Andrew
Re: ConnectDBStart() error
От:
"Oliver Elphick" <olly@lfix.co.uk>
Дата:
"Andrew Chan" wrote:
>I'm using SuSE Linux 7.0 with PostgreSQL 7.0.3. I encounter the following e=
>rror while adding a user
>
>test:~# su postgres
>test:/root ~# createuser
>Shall the user be allowed to create databases?(y/n) : y
>Shall the user be allowed to create more users? (y/n) : y
>psql: ConnectDBStart() -- connect failed - Connection refused
> Is the postmaster running at localhost?
> and accepting connection on Unix sockets '5432'?
What's the answer to those questions? Do:
ps ax | grep postmaster
to answer the first, and
ls -l /tmp/.s.PGSQL.5432
or (as root)
lsof -U | grep 5432
to answer the second.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Be of good courage, and he shall strengthen your
heart, all ye that hope in the LORD."
Psalms 31:24
Re: ConnectDBStart() error
От:
"Robert B. Easter" <reaster@comptechnews.com>
Дата:
On Tuesday 12 December 2000 06:49, Oliver Elphick wrote: > "Andrew Chan" wrote: > >I'm using SuSE Linux 7.0 with PostgreSQL 7.0.3. I encounter the > > following e= rror while adding a user > > > >test:~# su postgres > >test:/root ~# createuser > >Shall the user be allowed to create databases?(y/n) : y > >Shall the user be allowed to create more users? (y/n) : y > >psql: ConnectDBStart() -- connect failed - Connection refused > > Is the postmaster running at localhost? > > and accepting connection on Unix sockets '5432'? > > What's the answer to those questions? Do: > > ps ax | grep postmaster > > to answer the first, and > > ls -l /tmp/.s.PGSQL.5432 > > or (as root) > > lsof -U | grep 5432 > > to answer the second. I don't have the "lsof" command on my system: Slackware 7.1. What does it do? Should I download it from somewhere and install it? -- -------- Robert B. Easter reaster@comptechnews.com --------- - CompTechNews Message Board http://www.comptechnews.com/ - - CompTechServ Tech Services http://www.comptechserv.com/ - ---------- http://www.comptechnews.com/~reaster/ ------------