PostgreSQL on Panther Serverインストールメモ
Marc
Liyangeさんのところにpkg
があるのでそちらを利用します。
Pantherの場合だとメモリ関係のパラメータを調整 した方がいいみたいです。 あとは、基本的にサイトにある通りだが、注意点は以下の通り。 ・作成するユーザpostgresにはホームディレクトリを作成しましょう。 ・pgsql-startupitem-1.2.pkg.tar.gz も入れると自動起動してくれます。 ・createdb は以下にようにしたので、サイトにあるようにtestは作らなかった。 後でも消せるけど。 追加作業として以下のことをした。このサイト を参考にしました。 1. ユーザ作成 % su - postgres % /usr/local/bin/createuser (ユーザ名) Shall the new user be allowed to create databases? (y/n) (データベースを作成する権限の有無) Shall the new user be allowed to create more new users? (y/n) (他のユーザを作成する権限の有無) CREATE USER 2. データベース作成 % createdb -E (エンコード名) (データベース名) 3. ネットワークからの利用 /usr/local/pgsql/data/postgresql.conf において、 tcpip_socket = true とする。 /usr/local/pgsql/data/pg_hba.conf を修正。例えば、192.168.1.0/24から利用させたい場合は、以下を追記。 host all all 192.168.1.0 255.255.255.0 trust 以上。
Comment(s)
|
Quick Links
Calendar
Categories
Recent Entries
Recent comments
related site/software
BlogPeople
チェック済み
Comments powered by
XML/RSS Feed
Archives
I love Mac!
Statistics
Total entries in this blog:
Total entries in this category: Published On: 2007.09.09 02:32
Powered by
iBlog |