[pgsql-jp: 27628] Re: connect() failed: Connection refused

みつき mitsuki @ zc5.so-net.ne.jp
2002年 10月 15日 (火) 16:15:14 JST


>initdbって行いましたか?
>または、ディレクトリ違いとか?

postmaster -D /usr/local/pgsql/data
とすると既にディレクトリの中にファイルがあるよ、というメッセージが出ました。
ですのでもうinitdbは行ってあると思います。(変なファイルが入ってるだけでしょ 
うか)

中を見てみると
PG_VERSION  base  global  pg_hba.conf  pg_ident.conf  pg_xlog 
postgresql.conf  postmaster.opts  postmaster.pid
というファイルがありました。

> >
> > Postgresqlにて以下のエラーのため、データベースの作成ができません。
> >
> >
> > $ createdb
> > psql: connectDBStart() -- connect() failed: Connection refused
> >          Is the postmaster running locally
> >          and accepting connections on Unix socket '/tmp/.s.PGSQL.5432'?
> > createdb: database creation failed
> >
> > ネットで調べたところ、postmasterが起動していない可能性があるとのことで
> > 下記のコマンドで起動状態を調べました。
> >
> > $ pg_ctl status
> > pg_ctl: postmaster is running (pid: 460)
> > Command line was:
> > /usr/local/pgsql/bin/postmaster '-S' '-i'
> >
> > 起動はされているのに、なぜ上記のようなエラーが出るのでしょう?
> >
> > みつき@so-net
> > (Postgres7.1.3)
> >
> >




pgsql-jp メーリングリストの案内