アットウィキロゴ

postgresql

繋がらない

./psql: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

  • 対策
環境設定に以下を設定する
LD_LIBRARY_PATH=/opt/CorrectMail/postgres/lib
export LD_LIBRARY_PATH

psql: could not connect to server: No such file or directory

       Is the server running locally and accepting
       connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
  • ポートが間違っていないか確認する。
netstat -tlp
TCPでリスンしているもプログラムを調べる

ログインできるようにする
alter user username password 'password';
CREATE ROLE name LOGIN;
GRANT SELECT ON <テーブル名> TO <ユーザー名>;

タグ:

+ タグ編集
  • タグ:
最終更新:2011年06月27日 09:43
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。