[pgsql-jp: 33775] createdbの--hostオプション

Kazuaki Miyauchi miyauchk @ hotmail.com
2004年 7月 29日 (木) 12:21:29 JST


 宮内といいます。openbazaar-0.0.3をFedora Core 2に入れようとしています。
install作業の中で、Postgresのセットアップがあるのですが、その中で以下の
コマンドを呼んでおり、直接投入しても、エラーとなってしまいます。

-bash-2.05b$ /usr/bin/createdb --host=localhost --port=5432 
--username=postgres --encoding=EUC_JP openbazaar
createdb: could not connect to database template1: could not connect to 
server: ... 
        Is the server running on host "localhost" and accepting
        TCP/IP connections on port 5432?

 不思議な事に、--hostオプションを省くと旨く行きます。

-bash-2.05b$ /usr/bin/createdb --port=5432 --username=postgres 
--encoding=EUC_JP openbazaar
CREATE DATABASE
-bash-2.05b$ 

 localhostは、/etc/hostに正しく記述されており、正しく認識されています。
-bash-2.05b$ ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=64 
time=0.097 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 
time=0.110 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 
time=0.121 ms

 当該PCは、miyaという名前でも登録されており、そちらを指定してもエラーです。
-bash-2.05b$ /usr/bin/createdb --host=miya --port=5432 --username=postgres 
--encoding=EUC_JP openbazaar
createdb: could not connect to database template1: could not connect to 
server: .....
        Is the server running on host "miya" and accepting
        TCP/IP connections on port 5432?
-bash-2.05b$

 どうして、このような事が起きてしまうのでしょうか?

_________________________________________________________________
楽しい絵文字でココロ伝わるメッセンジャー http://messenger.msn.co.jp/ 




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