トップ 一覧 ping 検索 ヘルプ RSS ログイン

PostgreSQL pgAdminのインストールの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
!!!PostgreSQL pgAdminのインストール
[PostgreSQL][PostgreSQL 8.3.5]

{{amazon 4798123358}}

!!pgAdminのインストール(Windows)
PostgresSQL用GUIクライアント
http://www.pgadmin.org/

::ダウンロード〜設定
Windowsにクライアントをインストールする。
[ここ|http://www.postgresql.jp/PostgreSQL/8_3/8_3_5]からWindows用インストーラを入手し(pgAdminも含まれている)
{{ref_image pgsql_client01.jpg}}
*DBサーバーは[[別のマシンにインストールした|PostgreSQL 8.3.5 インストール]]ため、クライアントソフウェアのみインストールする。
*アプリケーションスタックビルダも(上の図では×としているが)以下のようなツールのため、追加でインストールした
 8.3以降のWindows版インストーラでは、ODBC、JDBC、PostGIS、
 Slony-I等のインストールは、外部プロジェクト専用のインストーラである
 “スタックビルダ”に移行しました。PostgreSQL本体のインストール
 完了後にスタックビルダを用いて追加インストールしてください。

!接続設定
::とりあえず接続試行
サーバー側でなにも用意していないが、とりあえず接続してみる。
{{ref_image pgsql_client02.jpg}}
::案の定エラー
{{ref_image pgsql_client04.jpg}}

::サーバー側ファイアウォールの設定
まずは、[[ファイアーウォールの設定|Fedora Core 6 ファイヤーウォールの設定
目次]]を行い、5432ポートをあける。
{{ref_image pgsql_client03.jpg}}

::サーバー側でリスナーの設定
pgAdminのヘルプを読むと、以下の記述
 For security reasons, a PostgreSQL server "out of the box" doesn't listen on  
 TCP/IP ports. Instead, it has to be enabled to listen for TCP/IP requests. 
 This can be done by adding tcpip = true to the postgresql.conf file for  
 Versions 7.3.x and 7.4.x, or listen_addresses='*' for Version 8.0.x and above; 
 this will make the server accept connections on any IP interface.

*postgressql.conf の、[listen_address|http://www.postgresql.jp/document/current/html/runtime-config-connection.html]を以下のように設定

 listen_addresses = '*'
 port = 5432 

::まだエラー
{{ref_image pgsql_client05.jpg}}

*[pg_hba.conf|http://www.postgresql.jp/document/current/html/auth-pg-hba-conf.html]を編集する必要がある。
*以下のように編集

 host    all         all         192.168.24.0/24       trust

::接続できた!

{{ref_image pgsql_client06.jpg}}

!!pgAdminのインストール(linux)
[Fedora Core]
!yum でインストール

*yum search で探して、yum install

 # yum search pgadmin
 Loaded plugins: refresh-packagekit
 =============================== Matched: pgadmin ===============================
 pgadmin3.i386 : Graphical client for PostgreSQL
 pgadmin3-docs.i386 : Documentation for pgAdmin3
 phpPgAdmin.noarch : Web-based PostgreSQL administration
 # yum install pgadmin3.i386
 Loaded plugins: refresh-packagekit
 Setting up Install Process
 Parsing package install arguments
          :

::インストールされた 

{{ref_image pgadmin01.jpg}}

!起動
接続設定はWindowsと同様
{{ref_image pgadmin02.jpg}}