| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

「PostgreSQL pgAdminのインストール」の版間の差分

提供: MyMemoWiki
ナビゲーションに移動 検索に移動
1行目: 1行目:
==PostgreSQL pgAdminのインストール==
+
==[[PostgreSQL pgAdminのインストール]]==
 
[[PostgreSQL]] | [[PostgreSQL 8.3.5]] |  
 
[[PostgreSQL]] | [[PostgreSQL 8.3.5]] |  
  
 
{{amazon|4798123358}}
 
{{amazon|4798123358}}
  
===pgAdminのインストール(Windows)===
+
===pgAdminのインストール([[Windows]])===
PostgresSQL用GUIクライアント
+
Postgres[[SQL]]用GUIクライアント
 
http://www.pgadmin.org/
 
http://www.pgadmin.org/
  
 
=====ダウンロード~設定=====
 
=====ダウンロード~設定=====
Windowsにクライアントをインストールする。
+
[[Windows]]にクライアントをインストールする。
[[http://www.postgresql.jp/PostgreSQL/8_3/8_3_5 ここ]] | からWindows用インストーラを入手し(pgAdminも含まれている)
+
[http://www.postgresql.jp/PostgreSQL/8_3/8_3_5 ここ]からWindows用インストーラを入手し(pgAdminも含まれている)
 
[[File:0964_pgsql_client01.jpg]]
 
[[File:0964_pgsql_client01.jpg]]
*DBサーバーは[PostgreSQL 8.3.5 インストール] [別のマシンにインストールした]ため、クライアントソフウェアのみインストールする。
+
*DBサーバーは[[PostgreSQL 8.3.5 インストール|別のマシンにインストールした]]ため、クライアントソフウェアのみインストールする。
 
*アプリケーションスタックビルダも(上の図では×としているが)以下のようなツールのため、追加でインストールした
 
*アプリケーションスタックビルダも(上の図では×としているが)以下のようなツールのため、追加でインストールした
  8.3以降のWindows版インストーラでは、ODBC、JDBC、PostGIS、
+
  8.3以降の[[Windows]]版インストーラでは、ODBC、JDBC、PostGIS、
 
  Slony-I等のインストールは、外部プロジェクト専用のインストーラである
 
  Slony-I等のインストールは、外部プロジェクト専用のインストーラである
  “スタックビルダ”に移行しました。PostgreSQL本体のインストール
+
  “スタックビルダ”に移行しました。[[PostgreSQL]]本体のインストール
 
  完了後にスタックビルダを用いて追加インストールしてください。
 
  完了後にスタックビルダを用いて追加インストールしてください。
  
33行目: 33行目:
 
=====サーバー側でリスナーの設定=====
 
=====サーバー側でリスナーの設定=====
 
pgAdminのヘルプを読むと、以下の記述
 
pgAdminのヘルプを読むと、以下の記述
  For security reasons, a PostgreSQL server "out of the box" doesn't listen on   
+
  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.  
 
  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   
 
  This can be done by adding tcpip = true to the postgresql.conf file for   
65行目: 65行目:
 
  Loaded plugins: refresh-packagekit
 
  Loaded plugins: refresh-packagekit
 
  =============================== Matched: pgadmin ===============================
 
  =============================== Matched: pgadmin ===============================
  pgadmin3.i386 : Graphical client for PostgreSQL
+
  pgadmin3.i386 : Graphical client for [[PostgreSQL]]
 
  pgadmin3-docs.i386 : Documentation for pgAdmin3
 
  pgadmin3-docs.i386 : Documentation for pgAdmin3
  phpPgAdmin.noarch : Web-based PostgreSQL administration
+
  phpPgAdmin.noarch : Web-based [[PostgreSQL]] administration
 
  # yum install pgadmin3.i386
 
  # yum install pgadmin3.i386
 
  Loaded plugins: refresh-packagekit
 
  Loaded plugins: refresh-packagekit
79行目: 79行目:
  
 
====起動====
 
====起動====
接続設定はWindowsと同様
+
接続設定は[[Windows]]と同様
 
[[File:0963_pgadmin02.jpg]]
 
[[File:0963_pgadmin02.jpg]]

2020年2月16日 (日) 04:30時点における版

PostgreSQL pgAdminのインストール

PostgreSQL | PostgreSQL 8.3.5 |

pgAdminのインストール(Windows)

PostgresSQL用GUIクライアント http://www.pgadmin.org/

ダウンロード~設定

Windowsにクライアントをインストールする。 ここからWindows用インストーラを入手し(pgAdminも含まれている) 0964 pgsql client01.jpg

  • DBサーバーは別のマシンにインストールしたため、クライアントソフウェアのみインストールする。
  • アプリケーションスタックビルダも(上の図では×としているが)以下のようなツールのため、追加でインストールした
8.3以降のWindows版インストーラでは、ODBC、JDBC、PostGIS、
Slony-I等のインストールは、外部プロジェクト専用のインストーラである
“スタックビルダ”に移行しました。PostgreSQL本体のインストール
完了後にスタックビルダを用いて追加インストールしてください。

接続設定

とりあえず接続試行

サーバー側でなにも用意していないが、とりあえず接続してみる。 0965 pgsql client02.jpg

案の定エラー

0967 pgsql client04.jpg

サーバー側ファイアウォールの設定

まずは、Fedora Core 6 ファイヤーウォールの設定 目次を行い、5432ポートをあける。 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.
listen_addresses = '*'
port = 5432 
まだエラー

0968 pgsql client05.jpg

  • pg_hba.confを編集する必要がある。
  • 以下のように編集
host    all         all         192.168.24.0/24       trust
接続できた!

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
         :
インストールされた 

0962 pgadmin01.jpg

起動

接続設定はWindowsと同様 0963 pgadmin02.jpg