INDEX
PostgreSQLのインストールについて
- 1 NI-Lab. 2002/06/16(Sun) 00:55
- PostgreSQLのインストールについて
- 2 NI-Lab. 2002/06/16(Sun) 00:55
- /*******************************************/
* postgresql-7.2.1 の簡易インストール方法 *
/*******************************************/
// ユーザpostgresを作成
# adduser postgres
// 作業場所とインストール先を作成
# mkdir /usr/local/src/postgresql-7.2.1
# mkdir /usr/local/pgsql
# chown /usr/local/src/postgresql-7.2.1
# chown postgres /usr/local/pgsql
// インストール
# su - postgres
$ cd /usr/local/src
$ tar xfz postgresql-7.2.1.tar.gz
$ cd postgresql-7.2.1
$ ./configure --enable-multibyte=EUC_JP
$ make
$ make install
// ~/.bash_profile を作成
$ cat ~/.bash_profile
PATH="$PATH":/usr/local/pgsql/bin
PG=/usr/local/pgsql
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$PG/lib
export PGLIB=$PG/lib
export PGDATA=$PG/data
$ source .bash_profile
// データベースの準備
$ initdb
$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
$ createdb
// データベースを扱う……
$ psql
- 3 NI-Lab. 2003/11/03(Mon) 11:43
- 別サーバからアクセスするために。
http://www.postgresql.jp/document/pg721doc/admin/client-authentication.html
クライント認証
>クライアント認証はデータディレクトリ、例えば /usr/local/pgsql/data/pg_hba.conf にある pg_hba.conf ファイルで管理されています。(HBA とは、host-based authentication:ホストベースの認証の略です。)デフォルトの pg_hba.conf ファイルはデータ領域が initdb で初期化される時にインストールされます。
- 4 NI-Lab. 2003/11/03(Mon) 11:43
- http://jdbc.postgresql.org/
PostgreSQL JDBC Drivers
- 5 NI-Lab. 2003/11/03(Mon) 11:47
- http://osb.sra.co.jp/PostgreSQL/7.3/install.html
PostgreSQL7.3インストール編
http://osb.sra.co.jp/PostgreSQL/7.3/jdbc.html
PostgreSQL 7.3 リリースノート(JDBC編)