3,358 バイト追加
、 2020年2月15日 (土) 07:34
==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も含まれている)
[[File:0964_pgsql_client01.jpg]]
*DBサーバーは[PostgreSQL 8.3.5 インストール] [別のマシンにインストールした]ため、クライアントソフウェアのみインストールする。
*アプリケーションスタックビルダも(上の図では×としているが)以下のようなツールのため、追加でインストールした
8.3以降のWindows版インストーラでは、ODBC、JDBC、PostGIS、
Slony-I等のインストールは、外部プロジェクト専用のインストーラである
“スタックビルダ”に移行しました。PostgreSQL本体のインストール
完了後にスタックビルダを用いて追加インストールしてください。
====接続設定====
=====とりあえず接続試行=====
サーバー側でなにも用意していないが、とりあえず接続してみる。
[[File:0965_pgsql_client02.jpg]]
=====案の定エラー=====
[[File:0967_pgsql_client04.jpg]]
=====サーバー側ファイアウォールの設定=====
まずは、[[ファイアーウォールの設定|Fedora Core 6 ファイヤーウォールの設定
目次]]を行い、5432ポートをあける。
[[File:0966_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 の、[http://www.postgresql.jp/document/current/html/runtime-config-connection.html listen_address]を以下のように設定
listen_addresses = '*'
port = 5432
=====まだエラー=====
[[File:0968_pgsql_client05.jpg]]
*[http://www.postgresql.jp/document/current/html/auth-pg-hba-conf.html pg_hba.conf]を編集する必要がある。
*以下のように編集
host all all 192.168.24.0/24 trust
=====接続できた!=====
[[File:0969_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
:
=====インストールされた =====
[[File:0962_pgadmin01.jpg]]
====起動====
接続設定はWindowsと同様
[[File:0963_pgadmin02.jpg]]