[pgsql-jp: 24958] Re: 複数ユーザ登録をするには?

tetuo shima mlmlml @ lily.freemail.ne.jp
2002年 2月 26日 (火) 18:07:50 JST


> 既にpostgreSQL7.1.2 がインストールされているパソコンで
> そのデータベースを操作しようと思っています。
>
>  $createdb test を実行したところ、以下のように表示されました。
>    →  rsql: FATAL 1: user “ckoduka” does not exist
>       createdb: dagabase creation failed
>  
> そこで、ユーザ登録をしようと
>  $ createuser ckoduka
>  Shall the new user be allowed to create databases? (y/n) y
>  Shall the new user be allowed to create more new users? (y/n) n
>  
>  ・・・と進んだのですが、
>
>   psql:FATAL 1 : user ”ckoduka” does not exist
>   createuser: creation of user ”ckoduka” faird
>
>  ・・・と表示されてしまい、うまくいきませんでした。
>  これはrootで実行しても同じ結果が返りました。
>
> pointmasterが関係するのではないかと聞いたのですが
> その後の設定の仕方がよくわかりません。
>
[postgresql @ note_linux postgresql]$ createuser ckoduka
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) n
psql: connectDBStart() -- connect() failed: No such file or directory
        Is the postmaster running locally
        and accepting connections on Unix socket '/tmp/.s.PGSQL.5432'?
createuser: creation of user "ckoduka" failed

こういうようなことでしょうか?  どこからこのコマンドをたたいていますか?
Localhost? それともほかのPCからですか?
多分まず第一に
postgreが起動していない。
第二に
起動しているがLocalhost以外からの接続であり、postmaster を -i オプションで起
動していない

なのではないでしょうか?

http://osb.sra.co.jp/PostgreSQL/Manual/PostgreSQL-7.1-ja/app-postmaster.html
http://osb.sra.co.jp/PostgreSQL/Manual/PostgreSQL-7.1-ja/app-pg-ctl.html
上のリンクが参考になると思います。




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